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

Unified Diff: chrome/browser/profiles/profile_io_data.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_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index 9dc346cd701bdaddb0417cf037d909cb79128b45..ea98e168599d4a8bd01f2a9c7871619fa11a2c1d 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -260,8 +260,10 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) {
#if defined(ENABLE_MANAGED_USERS)
ManagedUserService* managed_user_service =
ManagedUserServiceFactory::GetForProfile(profile);
- params->managed_mode_url_filter =
- managed_user_service->GetURLFilterForIOThread();
+ if (managed_user_service) {
+ params->managed_mode_url_filter =
+ managed_user_service->GetURLFilterForIOThread();
+ }
#endif
params->profile = profile;

Powered by Google App Engine
This is Rietveld 408576698