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

Side by Side Diff: tools/telemetry/telemetry/core/chrome/inspector_console.py

Issue 12278015: [Telemetry] Reorganize everything. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-add shebangs. Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 import json 4 import json
5 import logging 5 import logging
6 6
7 class InspectorConsole(object): 7 class InspectorConsole(object):
8 def __init__(self, inspector_backend): 8 def __init__(self, inspector_backend):
9 self._inspector_backend = inspector_backend 9 self._inspector_backend = inspector_backend
10 self._inspector_backend.RegisterDomain( 10 self._inspector_backend.RegisterDomain(
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 return 50 return
51 51
52 if enabled: 52 if enabled:
53 method_name = 'enable' 53 method_name = 'enable'
54 else: 54 else:
55 method_name = 'disable' 55 method_name = 'disable'
56 self._inspector_backend.SyncRequest({ 56 self._inspector_backend.SyncRequest({
57 'method': 'Console.%s' % method_name 57 'method': 'Console.%s' % method_name
58 }) 58 })
59 self._console_enabled = enabled 59 self._console_enabled = enabled
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698