I think Michael solution is best you can achieve with no effort.
in example:
http://init.extension/session_port/2456/otherDataInSomeFormatInExampleBase64Encoded
and then you can run in your background.html a simple regexp on
chrome.tabs.onCreated listener then you initialize settings for such
URI and then redirect to start page, delete tab, or redirect
somewhere.
Settings will be avaiable for whole session (till browser close or
manual clean by extension). Few lines, 30 minutes of coding and
everything is working very well. Not to mention that URI format is
very clear, in my opinion far better than --some-option, and you can
even put binary data by URI using base64
On 4 Sty, 15:06, Nathan Wray <
nw...@detroitsci.com> wrote:
> We need this as well, we're launching the browser with a (unique,
> per-session) callback port on the command line that we need to access from
> an extension. No solution so far.
>
>
>
>
>
>
>
> On Wed, Jan 4, 2012 at 2:44 AM, MontyBurns <
autorus...@gmail.com> wrote:
> > I need to launch Chrome from command line with custom parameter, which
> > contains path to some js-file. Further this path will be used in
> > extension.
>
> > I browsed carefully all related documentation and clicked all nodes in
> > Chrome debugger, but found nothing which can resemble on command line
> > parameters. Is it possible anyway to get these parameters or it's need
> > to write more complex npapi-extension? (theoretically in such npapi-
> > extension we able to get self process through win-api, command line of
> > self process and so on).
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-extensions" group.
> > To post to this group, send email to
chromium-extensi...@chromium.org.
> > To unsubscribe from this group, send email to
> >
chromium-extensions+unsubscr...@chromium.org.