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

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

Issue 366024: Add stub functions for chrome.* APIs in content scripts. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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/renderer/resources/extension_process_bindings.js
===================================================================
--- chrome/renderer/resources/extension_process_bindings.js (revision 31822)
+++ chrome/renderer/resources/extension_process_bindings.js (working copy)
@@ -272,7 +272,7 @@
}
chromeHidden.onLoad.addListener(function (extensionId) {
- chrome.initExtension(extensionId);
+ chrome.initExtension(extensionId, false);
// |apiFunctions| is a hash of name -> object that stores the
// name & definition of the apiFunction. Custom handling of api functions
@@ -510,6 +510,10 @@
setIconCommon(details, this.name, this.definition.parameters);
};
+ if (chrome.test) {
+ chrome.test.getApiDefinitions = GetExtensionAPIDefinition;
+ }
+
setupBrowserActionEvent(extensionId);
setupPageActionEvents(extensionId);
setupToolstripEvents(GetRenderViewId());
« no previous file with comments | « chrome/common/extensions/api/extension_api.json ('k') | chrome/renderer/resources/renderer_extension_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698