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

Unified Diff: chrome/renderer/resources/extension_process_bindings.js

Issue 7640005: Add a Print() method to bindings JS for last resort debugging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/renderer/resources/extension_process_bindings.js
diff --git a/chrome/renderer/resources/extension_process_bindings.js b/chrome/renderer/resources/extension_process_bindings.js
index b2d10ffeef0762a8592cbb5e98366833aac98952..d24cd676125df177560e95dfcc2a1c00cf2e8ebf 100644
--- a/chrome/renderer/resources/extension_process_bindings.js
+++ b/chrome/renderer/resources/extension_process_bindings.js
@@ -23,6 +23,7 @@ var chrome = chrome || {};
native function GetUniqueSubEventName(eventName);
native function GetLocalFileSystem(name, path);
native function DecodeJPEG(jpeg_image);
+ native function Print();
var chromeHidden = GetChromeHidden();
@@ -77,8 +78,6 @@ var chrome = chrome || {};
throw new Error(message);
} else if (!schemas[i].optional) {
- console.log(chromeHidden.JSON.stringify(args));
- console.log(chromeHidden.JSON.stringify(schemas));
throw new Error("Parameter " + (i + 1) + " is required.");
}
}
« no previous file with comments | « chrome/renderer/resources/event_bindings.js ('k') | chrome/renderer/resources/renderer_extension_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698