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

Unified Diff: chrome/renderer/user_script_slave.cc

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/user_script_slave.cc
===================================================================
--- chrome/renderer/user_script_slave.cc (revision 31822)
+++ chrome/renderer/user_script_slave.cc (working copy)
@@ -28,8 +28,9 @@
// Sets up the chrome.extension module. This may be run multiple times per
// context, but the init method deletes itself after the first time.
static const char kInitExtension[] =
- "if (chrome.initExtension) chrome.initExtension('%s');";
+ "if (chrome.initExtension) chrome.initExtension('%s', true);";
+
int UserScriptSlave::GetIsolatedWorldId(const std::string& extension_id) {
typedef std::map<std::string, int> IsolatedWorldMap;
« no previous file with comments | « chrome/renderer/resources/renderer_extension_bindings.js ('k') | chrome/test/data/extensions/api_test/stubs/background.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698