diff options
Diffstat (limited to 'chrome/renderer/user_script_slave.cc')
-rw-r--r-- | chrome/renderer/user_script_slave.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/chrome/renderer/user_script_slave.cc b/chrome/renderer/user_script_slave.cc index 86fcc1a..f3df33c 100644 --- a/chrome/renderer/user_script_slave.cc +++ b/chrome/renderer/user_script_slave.cc @@ -25,12 +25,8 @@ using WebKit::WebString; static const char kUserScriptHead[] = "(function (unsafeWindow) {\n"; static const char kUserScriptTail[] = "\n})(window);"; -// Creates a convenient reference to a content script's parent extension. -// TODO(mpcomplete): self.onConnect is deprecated. Remove it at 1.0. -// http://code.google.com/p/chromium/issues/detail?id=16356 -static const char kInitExtension[] = - "chrome.extension = new chrome.Extension('%s');" - "chrome.self.onConnect = chrome.extension.onConnect;"; +// Sets up the chrome.extension module. +static const char kInitExtension[] = "chrome.initExtension('%s');"; int UserScriptSlave::GetIsolatedWorldId(const std::string& extension_id) { typedef std::map<std::string, int> IsolatedWorldMap; |