| Index: chrome/renderer/user_script_slave.cc
|
| diff --git a/chrome/renderer/user_script_slave.cc b/chrome/renderer/user_script_slave.cc
|
| index 86fcc1a768e03ecf1f5834b000e2cbbc65c80bfe..f3df33cfc8793b8b3938098d25a8318a5449d66c 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;
|
|
|