diff options
author | yukishiino@chromium.org <yukishiino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-17 16:09:23 +0000 |
---|---|---|
committer | yukishiino@chromium.org <yukishiino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-17 16:09:23 +0000 |
commit | 7b7e0b30cd44d9d714032a6f4e51d3963951731e (patch) | |
tree | 3b05bac48deae075e0154ce14a986310546c7c25 /apps | |
parent | 64bd053812a43ec74755dfc1de4e2b4869a87360 (diff) | |
download | chromium_src-7b7e0b30cd44d9d714032a6f4e51d3963951731e.zip chromium_src-7b7e0b30cd44d9d714032a6f4e51d3963951731e.tar.gz chromium_src-7b7e0b30cd44d9d714032a6f4e51d3963951731e.tar.bz2 |
Allows the guest session on CrOS to load extension resource.
The current implementation inhibits extensions to load resources if it's in incognito mode and the extension is not enabled for incognito mode. That's right in a regular (non-guest) session.
However, the guest session is in incognito mode by default, and it doesn't have a regular (non-incognito) context. So we should allow resource loading if it's the guest session, otherwise there is no way for component extensions to load resources. Note component extensions are never listed in the extension list, so users cannot enable those extensions for incognito mode.
BUG=339318
TEST=Manually done.
TBR=davemoore@chromium.org
Review URL: https://codereview.chromium.org/182493004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257437 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps')
-rw-r--r-- | apps/shell/browser/shell_content_browser_client.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/shell/browser/shell_content_browser_client.cc b/apps/shell/browser/shell_content_browser_client.cc index e5260d0..73eda6e 100644 --- a/apps/shell/browser/shell_content_browser_client.cc +++ b/apps/shell/browser/shell_content_browser_client.cc @@ -69,7 +69,7 @@ net::URLRequestContextGetter* ShellContentBrowserClient::CreateRequestContext( browser_main_parts_->extension_system()->info_map(); (*protocol_handlers)[extensions::kExtensionScheme] = linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( - CreateExtensionProtocolHandler(false /*is_incognito*/, + CreateExtensionProtocolHandler(Profile::REGULAR_PROFILE, extension_info_map)); (*protocol_handlers)[extensions::kExtensionResourceScheme] = linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( |