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

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

Issue 11689004: Move PromoResourceService from Profile to BrowserProcessImpl/local_state(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 12 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/profile_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index e766c539750a2f13e54482c26b1f9e7767f30360..a9e14b6e51b706979cf1906a0e34ae4595e48145 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -702,8 +702,8 @@ void ProfileManager::DoFinalInit(Profile* profile, bool go_off_the_record) {
void ProfileManager::DoFinalInitForServices(Profile* profile,
bool go_off_the_record) {
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
#if defined(ENABLE_EXTENSIONS)
+ const CommandLine& command_line = *CommandLine::ForCurrentProcess();
if (!IsImportProcess(command_line)) {
extensions::ExtensionSystem::Get(profile)->InitForRegularProfile(
!go_off_the_record);
@@ -715,8 +715,6 @@ void ProfileManager::DoFinalInitForServices(Profile* profile,
}
}
#endif
- if (!command_line.HasSwitch(switches::kDisableWebResources))
- profile->InitPromoResources();
}
void ProfileManager::DoFinalInitLogging(Profile* profile) {

Powered by Google App Engine
This is Rietveld 408576698