diff options
author | dpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-21 07:20:22 +0000 |
---|---|---|
committer | dpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-21 07:20:22 +0000 |
commit | d0d1c0563afcbe0afa7afd1e64df825624cdf0de (patch) | |
tree | 2b1c7e64825a7667b73eccf35a8c0543ef4d06aa /apps | |
parent | 9e18f3ef417194517260de7ee1c06181944ebe76 (diff) | |
download | chromium_src-d0d1c0563afcbe0afa7afd1e64df825624cdf0de.zip chromium_src-d0d1c0563afcbe0afa7afd1e64df825624cdf0de.tar.gz chromium_src-d0d1c0563afcbe0afa7afd1e64df825624cdf0de.tar.bz2 |
Prevent creating background pages for non-incognito profile in Guest mode
BUG=329498
TEST=manually
Review URL: https://codereview.chromium.org/101413011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242271 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps')
-rw-r--r-- | apps/shell/shell_extensions_browser_client.cc | 5 | ||||
-rw-r--r-- | apps/shell/shell_extensions_browser_client.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/apps/shell/shell_extensions_browser_client.cc b/apps/shell/shell_extensions_browser_client.cc index 1e86921..cc59069 100644 --- a/apps/shell/shell_extensions_browser_client.cc +++ b/apps/shell/shell_extensions_browser_client.cc @@ -91,6 +91,11 @@ bool ShellExtensionsBrowserClient::DeferLoadingBackgroundHosts( return false; } +bool ShellExtensionsBrowserClient::IsBackgroundPageAllowed( + BrowserContext* context) const { + return true; +} + bool ShellExtensionsBrowserClient::DidVersionUpdate(BrowserContext* context) { // TODO(jamescook): We might want to tell extensions when app_shell updates. return false; diff --git a/apps/shell/shell_extensions_browser_client.h b/apps/shell/shell_extensions_browser_client.h index d3d5ddf..13998a1c 100644 --- a/apps/shell/shell_extensions_browser_client.h +++ b/apps/shell/shell_extensions_browser_client.h @@ -38,6 +38,8 @@ class ShellExtensionsBrowserClient content::BrowserContext* context) OVERRIDE; virtual bool DeferLoadingBackgroundHosts(content::BrowserContext* context) const OVERRIDE; + virtual bool IsBackgroundPageAllowed(content::BrowserContext* context) + const OVERRIDE; virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; virtual scoped_ptr<extensions::AppSorting> CreateAppSorting() OVERRIDE; virtual bool IsRunningInForcedAppMode() OVERRIDE; |