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

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

Issue 10984018: [chrome_remote_control] Add pylint to PRESUMMIT and fix lint (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for landing 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/browser_backend.py
diff --git a/tools/chrome_remote_control/chrome_remote_control/browser_backend.py b/tools/chrome_remote_control/chrome_remote_control/browser_backend.py
index 7131d3546a9d6c9314f0edd2e12dc9f00dab2e80..40d2b22bc363b040e1209a1253c8da77233aad33 100644
--- a/tools/chrome_remote_control/chrome_remote_control/browser_backend.py
+++ b/tools/chrome_remote_control/chrome_remote_control/browser_backend.py
@@ -45,7 +45,10 @@ class BrowserBackend(object):
else:
req = urllib2.urlopen('http://localhost:%i/json' % self._port)
data = req.read()
- return json.loads(data)
+ all_contexts = json.loads(data)
+ tabs = [ctx for ctx in all_contexts
+ if not ctx['url'].startswith('chrome-extension://')]
+ return tabs
@property
def num_tabs(self):

Powered by Google App Engine
This is Rietveld 408576698