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

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

Issue 10945043: [chrome_remote_control] Use monkey patching for stubs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: PyLint Created 8 years, 3 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: tools/chrome_remote_control/chrome_remote_control/cros_browser_finder.py
diff --git a/tools/chrome_remote_control/chrome_remote_control/cros_browser_finder.py b/tools/chrome_remote_control/chrome_remote_control/cros_browser_finder.py
index 9200b1e6defa62c4b9b4c4a480a1772238c6c2eb..a838a015a7b71891b774e414e73c274c86cc864b 100644
--- a/tools/chrome_remote_control/chrome_remote_control/cros_browser_finder.py
+++ b/tools/chrome_remote_control/chrome_remote_control/cros_browser_finder.py
@@ -8,8 +8,7 @@ import logging
from chrome_remote_control import browser
from chrome_remote_control import possible_browser
from chrome_remote_control import cros_browser_backend
-from chrome_remote_control import (
- cros_interface as real_cros_interface)
+from chrome_remote_control import cros_interface
ALL_BROWSER_TYPES = ','.join([
'cros-chrome',
@@ -30,8 +29,7 @@ class PossibleCrOSBrowser(possible_browser.PossibleBrowser):
self.browser_type, self._options, *self._args)
return browser.Browser(backend)
-def FindAllAvailableBrowsers(options,
- cros_interface = real_cros_interface):
+def FindAllAvailableBrowsers(options):
"""Finds all the desktop browsers available on this machine."""
if options.cros_remote == None:
logging.debug('No --remote specified, will not probe for CrOS.')

Powered by Google App Engine
This is Rietveld 408576698