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

Unified Diff: chrome/browser/ui/app_list/app_list_syncable_service.cc

Issue 115733007: Fix non-otr profile's file manager being launched in guest mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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
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(

Powered by Google App Engine
This is Rietveld 408576698