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

Unified Diff: ui/app_list/views/all_apps_tile_item_view.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: Created 5 years, 10 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: ui/app_list/views/all_apps_tile_item_view.cc
diff --git a/ui/app_list/views/all_apps_tile_item_view.cc b/ui/app_list/views/all_apps_tile_item_view.cc
index c6e0ab51ec20790cffca4326c0b96dc393824f64..695f70328a5c81c57acad50c88a56fde0036720c 100644
--- a/ui/app_list/views/all_apps_tile_item_view.cc
+++ b/ui/app_list/views/all_apps_tile_item_view.cc
@@ -27,8 +27,7 @@ void AllAppsTileItemView::UpdateIcon() {
void AllAppsTileItemView::ButtonPressed(views::Button* sender,
const ui::Event& event) {
- contents_view_->SetActivePage(
- contents_view_->GetPageIndexForState(AppListModel::STATE_APPS));
+ contents_view_->SetActivePage(AppListModel::STATE_APPS);
}
void AllAppsTileItemView::OnFolderImageUpdated() {

Powered by Google App Engine
This is Rietveld 408576698