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

Unified Diff: tools/telemetry/telemetry/inspector_console.py

Issue 11931026: Revert 177087. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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/telemetry/telemetry/inspector_console.py
===================================================================
--- tools/telemetry/telemetry/inspector_console.py (revision 177224)
+++ tools/telemetry/telemetry/inspector_console.py (working copy)
@@ -5,9 +5,10 @@
import logging
class InspectorConsole(object):
- def __init__(self, tab_backend):
- self._tab_backend = tab_backend
- self._tab_backend.RegisterDomain(
+ def __init__(self, inspector_backend, tab):
+ self._tab = tab
+ self._inspector_backend = inspector_backend
+ self._inspector_backend.RegisterDomain(
'Console',
self._OnNotification,
self._OnClose)
@@ -34,13 +35,12 @@
def _OnClose(self):
pass
- # False positive in PyLint 0.25.1: http://www.logilab.org/89092
@property
- def message_output_stream(self): # pylint: disable=E0202
+ def MessageOutputStream(self):
return self._message_output_stream
- @message_output_stream.setter
- def message_output_stream(self, stream): # pylint: disable=E0202
+ @MessageOutputStream.setter
+ def MessageOutputStream(self, stream):
self._message_output_stream = stream
self._UpdateConsoleEnabledState()
@@ -53,7 +53,7 @@
method_name = 'enable'
else:
method_name = 'disable'
- self._tab_backend.SyncRequest({
+ self._inspector_backend.SyncRequest({
'method': 'Console.%s' % method_name
})
self._console_enabled = enabled
« no previous file with comments | « tools/telemetry/telemetry/browser_backend.py ('k') | tools/telemetry/telemetry/inspector_console_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698