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

Unified Diff: chrome/browser/ui/ash/app_list/app_list_service_ash.cc

Issue 947903002: Change ContentsView::SetActivePage to use States rather than indexes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more_rebase Created 5 years, 9 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
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_views.cc ('k') | ui/app_list/views/all_apps_tile_item_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/app_list/app_list_service_ash.cc
diff --git a/chrome/browser/ui/ash/app_list/app_list_service_ash.cc b/chrome/browser/ui/ash/app_list/app_list_service_ash.cc
index 6d0fd0a1a4ced61a6e59fb6f0e4013f0164900ca..2b325d40c2090695516f0c89aaa8d7886b910613 100644
--- a/chrome/browser/ui/ash/app_list/app_list_service_ash.cc
+++ b/chrome/browser/ui/ash/app_list/app_list_service_ash.cc
@@ -49,8 +49,7 @@ void AppListServiceAsh::ShowAndSwitchToState(
app_list::ContentsView* contents_view =
app_list_view->app_list_main_view()->contents_view();
- contents_view->SetActivePage(contents_view->GetPageIndexForState(state),
- app_list_was_open /* animate */);
+ contents_view->SetActiveState(state, app_list_was_open /* animate */);
}
void AppListServiceAsh::Init(Profile* initial_profile) {
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_views.cc ('k') | ui/app_list/views/all_apps_tile_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698