| Index: chrome/browser/extensions/extension_protocols.cc
|
| diff --git a/chrome/browser/extensions/extension_protocols.cc b/chrome/browser/extensions/extension_protocols.cc
|
| index 30f7b377dfc27b8ab937807112715076612c35bd..f281c7408bcfd888460642a4d934d8080072ad1c 100644
|
| --- a/chrome/browser/extensions/extension_protocols.cc
|
| +++ b/chrome/browser/extensions/extension_protocols.cc
|
| @@ -99,7 +99,8 @@ bool AllowExtensionResourceLoad(URLRequest* request,
|
| // This is because an extension must run in a single process, and an
|
| // incognito tab prevents that.
|
| if (context->is_off_the_record() &&
|
| - info->resource_type() == ResourceType::MAIN_FRAME) {
|
| + info->resource_type() == ResourceType::MAIN_FRAME &&
|
| + !context->ExtensionCanLoadInIncognito(request->url().host())) {
|
| LOG(ERROR) << "Denying load of " << request->url().spec() << " from "
|
| << "incognito tab.";
|
| return false;
|
|
|