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

Issue 22268009: Move signin status and current user information into AppListModel. (Closed)

Created:
7 years, 4 months ago by calamity
Modified:
7 years, 4 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, Mr4D (OOO till 08-26)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Move signin status and current user information into AppListModel. For increased separation between model and view, the AppListViewDelegate now updates the model on profile and signin status change which then notifies the AppListView of changes so it can update. BUG= TEST=None TBR=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218251

Patch Set 1 : #

Total comments: 22

Patch Set 2 : rework #

Total comments: 8

Patch Set 3 : rework #

Patch Set 4 : implemented for mac #

Total comments: 30

Patch Set 5 : rework #

Total comments: 2

Patch Set 6 : tapted rebasing for calamity #

Patch Set 7 : fix tests, calamity rebasing for calamity #

Patch Set 8 : fix nit #

Total comments: 4

Patch Set 9 : rebase #

Patch Set 10 : fix tests and multiple notification bug #

Total comments: 4

Patch Set 11 : fix nits #

Patch Set 12 : fix aura #

Patch Set 13 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -206 lines) Patch
M ash/shell/app_list.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_impl.h View 1 2 4 chunks +1 line, -18 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_impl.cc View 1 2 3 4 5 4 chunks +0 lines, -21 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +23 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +51 lines, -24 lines 0 comments Download
M chrome/browser/ui/views/app_list/app_list_controller_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -5 lines 0 comments Download
M ui/app_list/app_list_model.h View 3 chunks +13 lines, -0 lines 0 comments Download
M ui/app_list/app_list_model.cc View 1 2 3 4 2 chunks +24 lines, -0 lines 0 comments Download
M ui/app_list/app_list_model_observer.h View 1 2 1 chunk +7 lines, -1 line 0 comments Download
M ui/app_list/app_list_view_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -6 lines 0 comments Download
M ui/app_list/cocoa/app_list_view_controller.h View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M ui/app_list/cocoa/app_list_view_controller.mm View 1 2 3 4 5 6 7 8 9 10 7 chunks +48 lines, -27 lines 0 comments Download
M ui/app_list/cocoa/app_list_view_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -19 lines 0 comments Download
M ui/app_list/cocoa/apps_search_box_controller.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ui/app_list/cocoa/apps_search_box_controller.mm View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M ui/app_list/cocoa/apps_search_box_controller_unittest.mm View 1 2 3 4 5 6 2 chunks +10 lines, -2 lines 0 comments Download
M ui/app_list/cocoa/current_user_menu_item_view.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -5 lines 0 comments Download
M ui/app_list/cocoa/current_user_menu_item_view.mm View 1 2 3 4 5 4 chunks +7 lines, -10 lines 0 comments Download
M ui/app_list/test/app_list_test_model.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/test/app_list_test_model.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
ui/app_list/test/app_list_test_view_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -2 lines 0 comments Download
M ui/app_list/test/app_list_test_view_delegate.cc View 1 2 1 chunk +0 lines, -8 lines 0 comments Download
M ui/app_list/views/app_list_menu_views.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -1 line 0 comments Download
M ui/app_list/views/app_list_menu_views.cc View 1 4 chunks +13 lines, -6 lines 0 comments Download
M ui/app_list/views/app_list_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -4 lines 0 comments Download
M ui/app_list/views/app_list_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +11 lines, -13 lines 0 comments Download
M ui/app_list/views/search_box_view.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ui/app_list/views/search_box_view.cc View 1 2 3 4 5 6 7 8 5 chunks +12 lines, -12 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
calamity
7 years, 4 months ago (2013-08-06 07:15:40 UTC) #1
koz (OOO until 15th September)
lgtm https://codereview.chromium.org/22268009/diff/6001/chrome/browser/ui/app_list/app_list_view_delegate.cc File chrome/browser/ui/app_list/app_list_view_delegate.cc (right): https://codereview.chromium.org/22268009/diff/6001/chrome/browser/ui/app_list/app_list_view_delegate.cc#newcode221 chrome/browser/ui/app_list/app_list_view_delegate.cc:221: void AppListViewDelegate::UpdateModelWithCurrentProfiles() { I think this would be ...
7 years, 4 months ago (2013-08-06 08:14:42 UTC) #2
tapted
Are some mac changes required? Make sure you add a BUG= and TEST= line (even ...
7 years, 4 months ago (2013-08-06 09:27:50 UTC) #3
xiyuan
+skuhne fyi I'd like to take another look after comments from tapted and koz are ...
7 years, 4 months ago (2013-08-06 17:04:53 UTC) #4
calamity
https://codereview.chromium.org/22268009/diff/6001/chrome/browser/ui/app_list/app_list_view_delegate.cc File chrome/browser/ui/app_list/app_list_view_delegate.cc (right): https://codereview.chromium.org/22268009/diff/6001/chrome/browser/ui/app_list/app_list_view_delegate.cc#newcode67 chrome/browser/ui/app_list/app_list_view_delegate.cc:67: signin_delegate_->RemoveObserver(this); On 2013/08/06 09:27:50, tapted wrote: > SetModel has ...
7 years, 4 months ago (2013-08-08 01:34:57 UTC) #5
xiyuan
LGTM with nits https://codereview.chromium.org/22268009/diff/17001/chrome/browser/ui/app_list/app_list_view_delegate.cc File chrome/browser/ui/app_list/app_list_view_delegate.cc (right): https://codereview.chromium.org/22268009/diff/17001/chrome/browser/ui/app_list/app_list_view_delegate.cc#newcode87 chrome/browser/ui/app_list/app_list_view_delegate.cc:87: if (profile_index == std::string::npos) Do you ...
7 years, 4 months ago (2013-08-08 01:52:05 UTC) #6
calamity
Also removed OnSigninStatusChanged from AppListServiceImpl since the signin status is now managed by AppListViewDelegate. https://chromiumcodereview.appspot.com/22268009/diff/17001/chrome/browser/ui/app_list/app_list_view_delegate.cc ...
7 years, 4 months ago (2013-08-08 06:29:40 UTC) #7
calamity
Implemented this for mac, also added early return on setting model properties to avoid unnecessary ...
7 years, 4 months ago (2013-08-13 08:16:41 UTC) #8
tapted
https://codereview.chromium.org/22268009/diff/60001/chrome/browser/ui/app_list/app_list_view_delegate.cc File chrome/browser/ui/app_list/app_list_view_delegate.cc (right): https://codereview.chromium.org/22268009/diff/60001/chrome/browser/ui/app_list/app_list_view_delegate.cc#newcode27 chrome/browser/ui/app_list/app_list_view_delegate.cc:27: #include "content/public/browser/notification_details.h" nit: content::NotificationSource and content::NotificationDetails look like they ...
7 years, 4 months ago (2013-08-14 03:53:11 UTC) #9
tfarina
https://codereview.chromium.org/22268009/diff/60001/chrome/browser/ui/app_list/app_list_view_delegate.cc File chrome/browser/ui/app_list/app_list_view_delegate.cc (right): https://codereview.chromium.org/22268009/diff/60001/chrome/browser/ui/app_list/app_list_view_delegate.cc#newcode64 chrome/browser/ui/app_list/app_list_view_delegate.cc:64: registrar_.Add(this, chrome::NOTIFICATION_PROFILE_CACHED_INFO_CHANGED, do you need to use notifications? we ...
7 years, 4 months ago (2013-08-14 03:56:59 UTC) #10
calamity
ProfileInfoCacheObserver change split into https://chromiumcodereview.appspot.com/23179002/ . https://chromiumcodereview.appspot.com/22268009/diff/60001/chrome/browser/ui/app_list/app_list_view_delegate.cc File chrome/browser/ui/app_list/app_list_view_delegate.cc (right): https://chromiumcodereview.appspot.com/22268009/diff/60001/chrome/browser/ui/app_list/app_list_view_delegate.cc#newcode27 chrome/browser/ui/app_list/app_list_view_delegate.cc:27: #include "content/public/browser/notification_details.h" On ...
7 years, 4 months ago (2013-08-14 09:18:59 UTC) #11
tapted
nice! I missed one (sorry!) but could you also rebase? Then we can run some ...
7 years, 4 months ago (2013-08-14 10:57:59 UTC) #12
calamity
Fixed tests. https://chromiumcodereview.appspot.com/22268009/diff/86001/ui/app_list/cocoa/current_user_menu_item_view.h File ui/app_list/cocoa/current_user_menu_item_view.h (right): https://chromiumcodereview.appspot.com/22268009/diff/86001/ui/app_list/cocoa/current_user_menu_item_view.h#newcode13 ui/app_list/cocoa/current_user_menu_item_view.h:13: class AppListViewDelegate; On 2013/08/14 10:57:59, tapted wrote: ...
7 years, 4 months ago (2013-08-16 01:44:16 UTC) #13
tapted
https://chromiumcodereview.appspot.com/22268009/diff/122001/ui/app_list/cocoa/app_list_view_controller_unittest.mm File ui/app_list/cocoa/app_list_view_controller_unittest.mm (right): https://chromiumcodereview.appspot.com/22268009/diff/122001/ui/app_list/cocoa/app_list_view_controller_unittest.mm#newcode118 ui/app_list/cocoa/app_list_view_controller_unittest.mm:118: model->SetSignedIn(true); I think this needs to be the default. ...
7 years, 4 months ago (2013-08-16 05:09:13 UTC) #14
calamity
Also fixed a bug that was introduced which was causing multiple signin views to get ...
7 years, 4 months ago (2013-08-16 07:24:04 UTC) #15
tapted
lgtm https://chromiumcodereview.appspot.com/22268009/diff/161001/ui/app_list/cocoa/app_list_view_controller.mm File ui/app_list/cocoa/app_list_view_controller.mm (right): https://chromiumcodereview.appspot.com/22268009/diff/161001/ui/app_list/cocoa/app_list_view_controller.mm#newcode347 ui/app_list/cocoa/app_list_view_controller.mm:347: ![appsGridController_ model]->signed_in() && signinDelegate; nit: might as well ...
7 years, 4 months ago (2013-08-16 08:00:24 UTC) #16
calamity
https://chromiumcodereview.appspot.com/22268009/diff/161001/ui/app_list/cocoa/app_list_view_controller.mm File ui/app_list/cocoa/app_list_view_controller.mm (right): https://chromiumcodereview.appspot.com/22268009/diff/161001/ui/app_list/cocoa/app_list_view_controller.mm#newcode347 ui/app_list/cocoa/app_list_view_controller.mm:347: ![appsGridController_ model]->signed_in() && signinDelegate; On 2013/08/16 08:00:25, tapted wrote: ...
7 years, 4 months ago (2013-08-16 09:12:46 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/22268009/168001
7 years, 4 months ago (2013-08-16 09:37:07 UTC) #18
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 4 months ago (2013-08-16 10:12:52 UTC) #19
calamity
TBRing sky@ for ash/shell/app_list.cc .
7 years, 4 months ago (2013-08-19 05:59:57 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/22268009/72001
7 years, 4 months ago (2013-08-19 06:00:19 UTC) #21
commit-bot: I haz the power
Retried try job too often on ios_rel_device for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_rel_device&number=74298
7 years, 4 months ago (2013-08-19 06:21:38 UTC) #22
calamity
Actually add sky@ to review. sky@: TBR for ash/shell/app_list.cc
7 years, 4 months ago (2013-08-19 07:14:28 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/22268009/211001
7 years, 4 months ago (2013-08-19 07:14:56 UTC) #24
commit-bot: I haz the power
Change committed as 218251
7 years, 4 months ago (2013-08-19 10:33:13 UTC) #25
sky
7 years, 4 months ago (2013-08-19 15:54:18 UTC) #26
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698