Index: chrome/browser/sync/profile_sync_service.cc |
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc |
index d185511184be7c4e96afc3df20520f73fc1af1ce..95f53af9b1880dcd148eef07a30700ae1a27c2a9 100644 |
--- a/chrome/browser/sync/profile_sync_service.cc |
+++ b/chrome/browser/sync/profile_sync_service.cc |
@@ -166,7 +166,8 @@ ProfileSyncService::ProfileSyncService(ProfileSyncComponentsFactory* factory, |
ProfileSyncService::~ProfileSyncService() { |
sync_prefs_.RemoveSyncPrefObserver(this); |
- Shutdown(); |
+ // Shutdown() should have been called before destruction. |
+ CHECK(!backend_initialized_); |
tim (not reviewing)
2012/10/01 21:18:57
Hmm. I think DCHECK is more appropriate here (usin
|
} |
bool ProfileSyncService::IsSyncEnabledAndLoggedIn() { |