diff options
author | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-09 05:13:03 +0000 |
---|---|---|
committer | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-09 05:13:03 +0000 |
commit | 7217e687aa38367a298bfc7b7144aaa0fc77d17d (patch) | |
tree | e4b925f732c47b81b322e743685232ff949da896 /chrome/test | |
parent | 672ade776dba7305a1502feeb8f677f9cf102412 (diff) | |
download | chromium_src-7217e687aa38367a298bfc7b7144aaa0fc77d17d.zip chromium_src-7217e687aa38367a298bfc7b7144aaa0fc77d17d.tar.gz chromium_src-7217e687aa38367a298bfc7b7144aaa0fc77d17d.tar.bz2 |
Pass handle of the native view window to the native messaging host.
Passing the handle allows the native messaging host to create native UI windows that will be correctly focused. The handle is passed on the command line as "--parent-window=<decimal handle value>".
BUG=269068
Review URL: https://chromiumcodereview.appspot.com/22532011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216595 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rwxr-xr-x | chrome/test/data/native_messaging/native_hosts/echo.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/test/data/native_messaging/native_hosts/echo.py b/chrome/test/data/native_messaging/native_hosts/echo.py index a4471c7..e9550f6 100755 --- a/chrome/test/data/native_messaging/native_hosts/echo.py +++ b/chrome/test/data/native_messaging/native_hosts/echo.py @@ -25,7 +25,10 @@ def Main(): if len(sys.argv) < 2: sys.stderr.write("URL of the calling application is not specified.\n") return; - caller_url = sys.argv[1] + for arg in sys.argv[1:]: + if not arg.startswith('--'): + caller_url = arg + break while 1: # Read the message type (first 4 bytes). |