diff options
author | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-10 20:52:40 +0000 |
---|---|---|
committer | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-10 20:52:40 +0000 |
commit | 9be525e4d7fd9ebb64150d32c367124f160776ba (patch) | |
tree | 415124dad5b1254d2212086daa537013145c0aa9 /apps/shell/shell_extensions_browser_client.cc | |
parent | e73ff37bc4f4be60b4bb476c58041d739004ab87 (diff) | |
download | chromium_src-9be525e4d7fd9ebb64150d32c367124f160776ba.zip chromium_src-9be525e4d7fd9ebb64150d32c367124f160776ba.tar.gz chromium_src-9be525e4d7fd9ebb64150d32c367124f160776ba.tar.bz2 |
app_shell: Fix PrefsTabHelper dependency of ExtensionHost
The default preference values are fine for app_shell's pages (as they are
for content_shell, which doesn't use PrefsTabHelper). Delegate out the
creation of PrefsTabHelper so we only create them in Chrome.
With this patch app_shell can launch a renderer before crashing.
BUG=332435
TEST=browser_tests, manual testing that extensions still work
Review URL: https://codereview.chromium.org/132993002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244236 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/shell/shell_extensions_browser_client.cc')
-rw-r--r-- | apps/shell/shell_extensions_browser_client.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/shell/shell_extensions_browser_client.cc b/apps/shell/shell_extensions_browser_client.cc index 67af2ac..f745200 100644 --- a/apps/shell/shell_extensions_browser_client.cc +++ b/apps/shell/shell_extensions_browser_client.cc @@ -98,6 +98,10 @@ bool ShellExtensionsBrowserClient::IsBackgroundPageAllowed( return true; } +void ShellExtensionsBrowserClient::OnExtensionHostCreated( + content::WebContents* web_contents) { +} + bool ShellExtensionsBrowserClient::DidVersionUpdate(BrowserContext* context) { // TODO(jamescook): We might want to tell extensions when app_shell updates. return false; |