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

Unified Diff: tools/chrome_remote_control/chrome_remote_control/android_browser_backend.py

Issue 10965027: Add web page replay to chrome_remote_control. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replace CreateForwarder with CreateReplayServer Created 8 years, 2 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 | « no previous file | tools/chrome_remote_control/chrome_remote_control/android_browser_finder.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/chrome_remote_control/chrome_remote_control/android_browser_backend.py
diff --git a/tools/chrome_remote_control/chrome_remote_control/android_browser_backend.py b/tools/chrome_remote_control/chrome_remote_control/android_browser_backend.py
index f6a129aab5fe805ff520ec36069f98c4292eb0da..ed7070ce2fba5b149c44f073343dd042eacdc77c 100644
--- a/tools/chrome_remote_control/chrome_remote_control/android_browser_backend.py
+++ b/tools/chrome_remote_control/chrome_remote_control/android_browser_backend.py
@@ -11,8 +11,8 @@ from chrome_remote_control import browser_backend
class AndroidBrowserBackend(browser_backend.BrowserBackend):
"""The backend for controlling a browser instance running on Android.
"""
- def __init__(self, options, adb, package, is_content_shell,
- cmdline_file, activity, devtools_remote_port):
+ def __init__(self, options, extra_browser_args, adb, package,
+ is_content_shell, cmdline_file, activity, devtools_remote_port):
super(AndroidBrowserBackend, self).__init__(is_content_shell)
# Initialize fields so that an explosion during init doesn't break in Close.
self._options = options
@@ -47,6 +47,8 @@ class AndroidBrowserBackend(browser_backend.BrowserBackend):
pass
# Set up the command line.
+ if extra_browser_args:
+ args.extend(extra_browser_args)
args.extend(options.extra_browser_args)
with tempfile.NamedTemporaryFile() as f:
f.write(' '.join(args))
« no previous file with comments | « no previous file | tools/chrome_remote_control/chrome_remote_control/android_browser_finder.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698