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

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

Issue 8879047: Fix crash during profile shutdown (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 3f2b821d82c6862daad73ba322c66c861d8e56a8..abbcf2890b28140dfa42a405e15e1c599546fb11 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -232,6 +232,7 @@ ProfileImpl::ProfileImpl(const FilePath& path,
extension_devtools_manager_(NULL),
host_content_settings_map_(NULL),
host_zoom_map_(NULL),
+ profile_sync_service_created_(false),
history_service_created_(false),
favicon_service_created_(false),
created_web_data_service_(false),
@@ -1387,8 +1388,10 @@ ProfileSyncService* ProfileImpl::GetProfileSyncService(
if (!ProfileSyncService::IsSyncEnabled())
return NULL;
- if (!sync_service_.get())
+ if (!profile_sync_service_created_) {
+ profile_sync_service_created_ = true;
InitSyncService(cros_user);
+ }
return sync_service_.get();
}
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698