Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / app_list / app_list_service_views.cc
index 51912df..d1284dd 100644 (file)
@@ -26,18 +26,13 @@ void AppListServiceViews::Init(Profile* initial_profile) {
   PerformStartupChecks(initial_profile);
 }
 
-void AppListServiceViews::CreateForProfile(Profile* requested_profile) {
-  shower_.CreateViewForProfile(requested_profile);
-}
-
 void AppListServiceViews::ShowForProfile(Profile* requested_profile) {
   DCHECK(requested_profile);
 
   ScopedKeepAlive keep_alive;
 
-  InvalidatePendingProfileLoads();
-  SetProfilePath(requested_profile->GetPath());
-  shower_.ShowForProfile(requested_profile);
+  CreateForProfile(requested_profile);
+  shower_.ShowForCurrentProfile();
   RecordAppListLaunch();
 }
 
@@ -64,6 +59,13 @@ AppListControllerDelegate* AppListServiceViews::GetControllerDelegate() {
   return controller_delegate_.get();
 }
 
+void AppListServiceViews::CreateForProfile(Profile* requested_profile) {
+  DCHECK(requested_profile);
+  InvalidatePendingProfileLoads();
+  shower_.CreateViewForProfile(requested_profile);
+  SetProfilePath(shower_.profile()->GetPath());
+}
+
 void AppListServiceViews::DestroyAppList() {
   if (!shower_.HasView())
     return;