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

Issue 947903002: Change ContentsView::SetActivePage to use States rather than indexes. (Closed)

Created:
5 years, 10 months ago by calamity
Modified:
5 years, 9 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, sadrul, kalyank
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change ContentsView::SetActivePage to use States rather than indexes. This CL makes the ContentsView's API state-keyed rather than page index keyed. This removes cruft from callers of SetActivePage and will support further refactors. BUG=455059 TBR=jamescook@chromium.org, benwells@chromium.org Committed: https://crrev.com/a61444ac0577e22bd3b20bcee833b2d199f4f512 Cr-Commit-Position: refs/heads/master@{#321513}

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove test method #

Patch Set 3 : change_method_name #

Patch Set 4 : and some more #

Patch Set 5 : rebase #

Patch Set 6 : more_rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -91 lines) Patch
M chrome/browser/apps/custom_launcher_page_browsertest_views.cc View 1 2 3 4 5 8 chunks +13 lines, -14 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_views.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_service_ash.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M ui/app_list/views/all_apps_tile_item_view.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M ui/app_list/views/app_list_main_view.cc View 1 2 3 4 5 2 chunks +4 lines, -6 lines 0 comments Download
M ui/app_list/views/app_list_main_view_unittest.cc View 1 2 3 chunks +3 lines, -6 lines 0 comments Download
M ui/app_list/views/app_list_view_unittest.cc View 1 2 3 4 2 chunks +35 lines, -32 lines 0 comments Download
M ui/app_list/views/contents_view.h View 1 2 3 chunks +5 lines, -8 lines 0 comments Download
M ui/app_list/views/contents_view.cc View 1 2 3 4 5 chunks +11 lines, -16 lines 0 comments Download
M ui/app_list/views/start_page_view.cc View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
calamity
5 years, 10 months ago (2015-02-23 06:00:04 UTC) #2
Matt Giuca
https://codereview.chromium.org/947903002/diff/1/ui/app_list/views/contents_view.h File ui/app_list/views/contents_view.h (right): https://codereview.chromium.org/947903002/diff/1/ui/app_list/views/contents_view.h#newcode73 ui/app_list/views/contents_view.h:73: void SetActivePage(AppListModel::State state); I think this should be renamed ...
5 years, 10 months ago (2015-02-23 23:57:27 UTC) #3
calamity
https://codereview.chromium.org/947903002/diff/1/ui/app_list/views/contents_view.h File ui/app_list/views/contents_view.h (right): https://codereview.chromium.org/947903002/diff/1/ui/app_list/views/contents_view.h#newcode73 ui/app_list/views/contents_view.h:73: void SetActivePage(AppListModel::State state); On 2015/02/23 23:57:27, Matt Giuca wrote: ...
5 years, 10 months ago (2015-02-24 06:40:24 UTC) #4
Matt Giuca
lgtm
5 years, 10 months ago (2015-02-26 23:37:12 UTC) #6
Matt Giuca
Oops, I checked the commit box, but unchecked it because we need more owners. Also, ...
5 years, 10 months ago (2015-02-26 23:38:34 UTC) #8
calamity
TBR-ing benwells@ for custom_launcher_page_browsertest_views.cc and jamescook@ for app_list_service_ash.cc.
5 years, 9 months ago (2015-03-20 02:23:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/947903002/100001
5 years, 9 months ago (2015-03-20 02:24:04 UTC) #13
benwells
lgtm
5 years, 9 months ago (2015-03-20 02:54:54 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 9 months ago (2015-03-20 04:13:30 UTC) #15
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/a61444ac0577e22bd3b20bcee833b2d199f4f512 Cr-Commit-Position: refs/heads/master@{#321513}
5 years, 9 months ago (2015-03-20 04:14:14 UTC) #16
James Cook
5 years, 9 months ago (2015-03-20 16:27:55 UTC) #17
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698