Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3175)

Unified Diff: chrome/test/data/native_messaging/native_hosts/echo.py

Issue 22532011: Pass handle of the native view window to the native messaging host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/api/messaging/native_process_launcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/native_messaging/native_hosts/echo.py
diff --git a/chrome/test/data/native_messaging/native_hosts/echo.py b/chrome/test/data/native_messaging/native_hosts/echo.py
index a4471c7cbb4d4fe96037b3ebb7887215850dd5b7..e9550f6cf678f7831b2617c03b3e39f23a6f7dfe 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).
« no previous file with comments | « chrome/browser/extensions/api/messaging/native_process_launcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698