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

Unified Diff: chrome/browser/resources/gpu_internals/browser_bridge.js

Issue 7555005: Moving the contents of chrome://gpu Profiling to chrome://tracing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 4 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: chrome/browser/resources/gpu_internals/browser_bridge.js
diff --git a/chrome/browser/resources/gpu_internals/browser_bridge.js b/chrome/browser/resources/gpu_internals/browser_bridge.js
index bcc97b87d69865277c13375a805a8b9df0ed4e7b..b632b35ea0daaa19241bcd6ed8887f0fdb770e23 100644
--- a/chrome/browser/resources/gpu_internals/browser_bridge.js
+++ b/chrome/browser/resources/gpu_internals/browser_bridge.js
@@ -11,13 +11,11 @@ cr.define('gpu', function() {
function BrowserBridge() {
// If we are not running inside WebUI, output chrome.send messages
// to the console to help with quick-iteration debugging.
- if (chrome.send === undefined && console.log) {
- this.debugMode_ = true;
+ this.debugMode_ = (chrome.send === undefined && console.log);
+ if (this.debugMode_) {
var browserBridgeTests = document.createElement('script');
browserBridgeTests.src = './gpu_internals/browser_bridge_tests.js';
document.body.appendChild(browserBridgeTests);
- } else {
- this.debugMode_ = false;
}
this.nextRequestId_ = 0;
« no previous file with comments | « chrome/browser/resources/gpu_internals.js ('k') | chrome/browser/resources/gpu_internals/fast_rect_renderer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698