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

Unified Diff: chrome/browser/resources/tracing/tracing_controller.js

Issue 8513009: Add TRACE_COUNTER support to about:tracing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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: chrome/browser/resources/tracing/tracing_controller.js
diff --git a/chrome/browser/resources/tracing/tracing_controller.js b/chrome/browser/resources/tracing/tracing_controller.js
index 4d924aeb857cf5cc2595a4812589ee11308d06b8..6a99dc032dc6afbe687fdbed0224a64aa324e877 100644
--- a/chrome/browser/resources/tracing/tracing_controller.js
+++ b/chrome/browser/resources/tracing/tracing_controller.js
@@ -27,13 +27,6 @@ cr.define('tracing', function() {
this.traceEvents_ = [];
- if (browserBridge.debugMode) {
- var tracingControllerTests = document.createElement('script');
- tracingControllerTests.src =
- './tracing/tracing_controller_tests.js';
- document.body.appendChild(tracingControllerTests);
- }
-
this.onKeydownBoundToThis_ = this.onKeydown_.bind(this);
this.onKeypressBoundToThis_ = this.onKeypress_.bind(this);
@@ -81,12 +74,8 @@ cr.define('tracing', function() {
this.statusDiv_.textContent = 'Tracing active.';
this.traceEvents_ = [];
- if (!browserBridge.debugMode) {
- chrome.send('beginTracing');
- this.beginRequestBufferPercentFull_();
- } else {
- tracing.tracingControllerTestHarness.beginTracing();
- }
+ chrome.send('beginTracing');
+ this.beginRequestBufferPercentFull_();
this.tracingEnabled_ = true;
@@ -166,11 +155,7 @@ cr.define('tracing', function() {
// delay sending endTracingAsync until we get a chance to
// update the screen...
window.setTimeout(function() {
- if (!browserBridge.debugMode) {
- chrome.send('endTracingAsync');
- } else {
- tracing.tracingControllerTestHarness.endTracing();
- }
+ chrome.send('endTracingAsync');
}, 100);
},

Powered by Google App Engine
This is Rietveld 408576698