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

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

Issue 1106453002: Fixed app launcher crashing trying to load guest profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/ui/app_list/app_list_service_views.cc
diff --git a/chrome/browser/ui/app_list/app_list_service_views.cc b/chrome/browser/ui/app_list/app_list_service_views.cc
index 7f1cd4aca03e00e357a1430c91991e6793fd55f4..3a4224797828cf5e11b999a013817180698c555c 100644
--- a/chrome/browser/ui/app_list/app_list_service_views.cc
+++ b/chrome/browser/ui/app_list/app_list_service_views.cc
@@ -30,6 +30,9 @@ void AppListServiceViews::Init(Profile* initial_profile) {
}
void AppListServiceViews::ShowForProfile(Profile* requested_profile) {
+ // App list profiles should not be off-the-record.
+ DCHECK(!requested_profile->IsOffTheRecord());
Mike Lerman 2015/04/22 13:27:39 Also please check requested_profile->IsGuestSessio
Matt Giuca 2015/04/24 04:51:04 Done.
+
ShowForProfileInternal(requested_profile,
app_list::AppListModel::INVALID_STATE);
}

Powered by Google App Engine
This is Rietveld 408576698