Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5803)

Unified Diff: chrome/browser/extensions/extension_host.cc

Issue 132993002: app_shell: Fix PrefsTabHelper dependency of ExtensionHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_host.cc
diff --git a/chrome/browser/extensions/extension_host.cc b/chrome/browser/extensions/extension_host.cc
index 6ca2501552e8cb1ed25b9193d063eb61cb35a675..bafcf2189806a32675289ed960685e9edddc17ee 100644
--- a/chrome/browser/extensions/extension_host.cc
+++ b/chrome/browser/extensions/extension_host.cc
@@ -21,7 +21,6 @@
#include "chrome/browser/extensions/extension_tab_util.h"
#include "chrome/browser/extensions/extension_web_contents_observer.h"
#include "chrome/browser/media/media_capture_devices_dispatcher.h"
-#include "chrome/browser/ui/prefs/prefs_tab_helper.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/extensions/extension_constants.h"
#include "chrome/common/extensions/extension_messages.h"
@@ -142,7 +141,6 @@ ExtensionHost::ExtensionHost(const Extension* extension,
SetViewType(host_contents_.get(), host_type);
ExtensionWebContentsObserver::CreateForWebContents(host_contents());
- PrefsTabHelper::CreateForWebContents(host_contents());
render_view_host_ = host_contents_->GetRenderViewHost();
@@ -150,6 +148,8 @@ ExtensionHost::ExtensionHost(const Extension* extension,
// be the same extension that this points to.
registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED,
content::Source<BrowserContext>(browser_context_));
+
+ ExtensionsBrowserClient::Get()->OnExtensionHostCreated(host_contents());
}
ExtensionHost::~ExtensionHost() {
« no previous file with comments | « chrome/browser/extensions/chrome_extensions_browser_client.cc ('k') | extensions/browser/extensions_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698