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

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

Issue 12330073: Disable ProfileKeyedServices on import process by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to ToT Created 7 years, 9 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_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 2b1020dc73f7322b079fb6a355b3909dc8ca2441..2be55fd116e9e7d8d30b56da6fb73b8c5127690c 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -471,7 +471,8 @@ void ProfileImpl::DoFinalInit(bool is_new_profile) {
// when extensions are loaded. BackgroundModeManager is not needed under
// ChromeOS because Chrome is always running, no need for special keep-alive
// or launch-on-startup support unless kKeepAliveForTest is set.
- bool init_background_mode_manager = true;
+ bool init_background_mode_manager =
+ !ProfileManager::IsImportProcess(*CommandLine::ForCurrentProcess());
gab 2013/03/07 19:54:22 While you're probably right this doesn't need to b
#if defined(OS_CHROMEOS)
if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kKeepAliveForTest))
init_background_mode_manager = false;

Powered by Google App Engine
This is Rietveld 408576698