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

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

Issue 219383006: Never create an app list for an incognito profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 1 month 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 6be5abe7a180a0d65c31724fc14b673eac8f3b4b..d1284dd23c6a45027f1525e6bed093391d73d70b 100644
--- a/chrome/browser/ui/app_list/app_list_service_views.cc
+++ b/chrome/browser/ui/app_list/app_list_service_views.cc
@@ -31,9 +31,8 @@ void AppListServiceViews::ShowForProfile(Profile* requested_profile) {
ScopedKeepAlive keep_alive;
- InvalidatePendingProfileLoads();
- SetProfilePath(requested_profile->GetPath());
- shower_.ShowForProfile(requested_profile);
+ CreateForProfile(requested_profile);
+ shower_.ShowForCurrentProfile();
RecordAppListLaunch();
}
@@ -61,7 +60,10 @@ AppListControllerDelegate* AppListServiceViews::GetControllerDelegate() {
}
void AppListServiceViews::CreateForProfile(Profile* requested_profile) {
+ DCHECK(requested_profile);
+ InvalidatePendingProfileLoads();
shower_.CreateViewForProfile(requested_profile);
+ SetProfilePath(shower_.profile()->GetPath());
}
void AppListServiceViews::DestroyAppList() {
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_mac.mm ('k') | chrome/browser/ui/app_list/app_list_shower_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698