Index: chrome/browser/ui/app_list/app_list_syncable_service.cc |
diff --git a/chrome/browser/ui/app_list/app_list_syncable_service.cc b/chrome/browser/ui/app_list/app_list_syncable_service.cc |
index 52ce18dcbf35bee9d8dc64b1631563e3597b2f19..47b6078d090b0c5b03177df7b7e1fce456e3e908 100644 |
--- a/chrome/browser/ui/app_list/app_list_syncable_service.cc |
+++ b/chrome/browser/ui/app_list/app_list_syncable_service.cc |
@@ -121,7 +121,9 @@ void AppListSyncableService::BuildModel() { |
if (service) |
controller = service->GetControllerDelegate(); |
apps_builder_.reset(new ExtensionAppModelBuilder(controller)); |
- if (CommandLine::ForCurrentProcess()->HasSwitch( |
+ DCHECK(profile_); |
+ if (!profile_->IsOffTheRecord() && |
stevenjb
2013/12/26 22:34:17
Hmm, I guess this is OK for now. Eventually we wil
tbarzic
2013/12/27 22:35:38
Done.
|
+ CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kEnableSyncAppList)) { |
DVLOG(1) << this << ": AppListSyncableService: InitializeWithService."; |
SyncStarted(); |
@@ -130,8 +132,6 @@ void AppListSyncableService::BuildModel() { |
DVLOG(1) << this << ": AppListSyncableService: InitializeWithProfile."; |
apps_builder_->InitializeWithProfile(profile_, model_.get()); |
} |
- |
- DCHECK(profile_); |
} |
void AppListSyncableService::Observe( |