| 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() {
|
|
|