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

Issue 63283003: Move AppListModel::Users to AppListViewDelegate (Closed)

Created:
7 years, 1 month ago by stevenjb
Modified:
7 years, 1 month ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, kalyank, sadrul, ben+ash_chromium.org, tfarina
Visibility:
Public.

Description

Move AppListModel::Users to AppListViewDelegate This is some minor re-factoring to simplify AppListModel in preparation for making it associated with a Profile for syncing. While not strictly necessary, it is confusing to have a list of "Users" associated with a model that describes the list of apps for a specific user. Also, the list of Users is only used by AppListMenu and can be maintained by AppListViewDelegate. One side effect of this change is that views will not be notified if the user list changes and therefore can not invalidate the menu. While this could be addressed, it shoudln't generally be possible to add a user while the app list UI is visible, so the added complexity did not seem worth supporting a theoretical edge case. BUG=315887 For ash/shell/app_list.cc: TBR=jamescook@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233996

Patch Set 1 #

Patch Set 2 : Mac fixes #

Total comments: 1

Patch Set 3 : Mac fixes #

Patch Set 4 : Mac fixes #

Patch Set 5 : Mac fixes #

Patch Set 6 : Mac fixes #

Patch Set 7 : Mac fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -122 lines) Patch
M ash/shell/app_list.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.cc View 3 chunks +8 lines, -5 lines 0 comments Download
M ui/app_list/app_list.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/app_list/app_list_menu.h View 3 chunks +3 lines, -7 lines 0 comments Download
M ui/app_list/app_list_menu.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M ui/app_list/app_list_model.h View 4 chunks +0 lines, -30 lines 0 comments Download
M ui/app_list/app_list_model.cc View 2 chunks +0 lines, -11 lines 0 comments Download
M ui/app_list/app_list_model_observer.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/app_list/app_list_model_unittest.cc View 6 chunks +0 lines, -19 lines 0 comments Download
M ui/app_list/app_list_view_delegate.h View 1 3 chunks +26 lines, -0 lines 0 comments Download
A + ui/app_list/app_list_view_delegate.cc View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M ui/app_list/cocoa/app_list_view_controller.mm View 2 chunks +0 lines, -5 lines 0 comments Download
M ui/app_list/cocoa/apps_search_box_controller.mm View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M ui/app_list/cocoa/apps_search_box_controller_unittest.mm View 1 2 3 4 5 6 9 chunks +19 lines, -19 lines 0 comments Download
M ui/app_list/test/app_list_test_view_delegate.h View 2 chunks +7 lines, -0 lines 0 comments Download
M ui/app_list/test/app_list_test_view_delegate.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/app_list/views/app_list_menu_views.h View 1 chunk +1 line, -4 lines 0 comments Download
M ui/app_list/views/app_list_menu_views.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M ui/app_list/views/app_list_view.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/app_list/views/app_list_view.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ui/app_list/views/search_box_view.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
stevenjb
7 years, 1 month ago (2013-11-06 22:51:58 UTC) #1
xiyuan
While we are at this, should we start to consider http://crbug.com/272321? I think the reason ...
7 years, 1 month ago (2013-11-06 23:35:06 UTC) #2
stevenjb
On 2013/11/06 23:35:06, xiyuan wrote: > While we are at this, should we start to ...
7 years, 1 month ago (2013-11-06 23:41:34 UTC) #3
xiyuan
On 2013/11/06 23:41:34, stevenjb wrote: > On 2013/11/06 23:35:06, xiyuan wrote: > > While we ...
7 years, 1 month ago (2013-11-06 23:49:02 UTC) #4
xiyuan
LGTM https://codereview.chromium.org/63283003/diff/40001/ui/app_list/test/app_list_test_view_delegate.h File ui/app_list/test/app_list_test_view_delegate.h (right): https://codereview.chromium.org/63283003/diff/40001/ui/app_list/test/app_list_test_view_delegate.h#newcode59 ui/app_list/test/app_list_test_view_delegate.h:59: nit: add DISALLOW_COPY_AND_ASSIGN?
7 years, 1 month ago (2013-11-06 23:49:28 UTC) #5
jennyz
lgtm
7 years, 1 month ago (2013-11-07 00:00:36 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/63283003/280001
7 years, 1 month ago (2013-11-08 17:36:06 UTC) #7
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=35245
7 years, 1 month ago (2013-11-08 17:55:26 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/63283003/280001
7 years, 1 month ago (2013-11-08 18:34:02 UTC) #9
commit-bot: I haz the power
7 years, 1 month ago (2013-11-08 21:27:25 UTC) #10
Message was sent while issue was closed.
Change committed as 233996

Powered by Google App Engine
This is Rietveld 408576698