| Index: chrome/renderer/resources/extensions/extension_custom_bindings.js
|
| diff --git a/chrome/renderer/resources/extensions/extension_custom_bindings.js b/chrome/renderer/resources/extensions/extension_custom_bindings.js
|
| index a6c69e76c63a60d5a14325f82cb49292962b30a3..be19e9c11b956ae421265991ab28c1f58ab4bf7e 100644
|
| --- a/chrome/renderer/resources/extensions/extension_custom_bindings.js
|
| +++ b/chrome/renderer/resources/extensions/extension_custom_bindings.js
|
| @@ -10,6 +10,18 @@ var OpenChannelToExtension = extensionNatives.OpenChannelToExtension;
|
|
|
| var chromeHidden = requireNative('chrome_hidden').GetChromeHidden();
|
|
|
| +var inIncognitoContext = requireNative('process').InIncognitoContext();
|
| +
|
| +chrome.extension = chrome.extension || {};
|
| +
|
| +var manifestVersion = requireNative('process').GetManifestVersion();
|
| +if (manifestVersion < 2) {
|
| + chrome.self = chrome.extension;
|
| + chrome.extension.inIncognitoTab = inIncognitoContext;
|
| +}
|
| +
|
| +chrome.extension.inIncognitoContext = inIncognitoContext;
|
| +
|
| // This should match chrome.windows.WINDOW_ID_NONE.
|
| //
|
| // We can't use chrome.windows.WINDOW_ID_NONE directly because the
|
|
|