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

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
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:]:
Sergey Ulanov 2013/08/08 18:22:37 I think it's better to keep this test as it was. E
alexeypa (please no reviews) 2013/08/08 23:57:41 To recap our offline conversation. It is very conv
+ if not arg.startswith('--'):
+ caller_url = arg
+ break
while 1:
# Read the message type (first 4 bytes).

Powered by Google App Engine
This is Rietveld 408576698