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

Unified Diff: chrome/browser/profiles/off_the_record_profile_impl.cc

Issue 386733002: Only build extensions code in chrome/browser/ui when extensions are enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/profiles/off_the_record_profile_impl.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
index 7612d381701a55ba481acd71d89d57ce70c3c872..dfcef82b4ffaef43da1ab34f0068031e73e33ae9 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -138,11 +138,6 @@ void OffTheRecordProfileImpl::Init() {
InitHostZoomMap();
- // Make the chrome//extension-icon/ resource available.
- extensions::ExtensionIconSource* icon_source =
- new extensions::ExtensionIconSource(profile_);
- content::URLDataSource::Add(this, icon_source);
-
#if defined(ENABLE_PLUGINS)
ChromePluginServiceFilter::GetInstance()->RegisterResourceContext(
PluginPrefs::GetForProfile(this).get(),
@@ -150,6 +145,11 @@ void OffTheRecordProfileImpl::Init() {
#endif
#if defined(ENABLE_EXTENSIONS)
+ // Make the chrome//extension-icon/ resource available.
+ extensions::ExtensionIconSource* icon_source =
+ new extensions::ExtensionIconSource(profile_);
+ content::URLDataSource::Add(this, icon_source);
+
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
base::Bind(&NotifyOTRProfileCreatedOnIOThread, profile_, this));
« no previous file with comments | « chrome/browser/extensions/extension_system_impl.cc ('k') | chrome/browser/ui/webui/net_internals/net_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698