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

Issue 25535006: Fix rebuilding the profile selector on the OSX App Launcher. (Closed)

Created:
7 years, 2 months ago by tapted
Modified:
7 years, 2 months ago
Reviewers:
calamity
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Visibility:
Public.

Description

Fix rebuilding the profile selector on the OSX App Launcher. rebuildMenu was only rebuilding the NSMenu, not the menu Model. Do both. Also add tests, and remove the unused AppListMenu::CURRENT_USER, to fix a broken test related to the test not observing the user model properly. BUG=302882 TEST=Open the App Launcher on OSX. Go to chrome://settings and add a user. The new user should appear in the App Lanucher profile selctor. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226435

Patch Set 1 #

Total comments: 1

Patch Set 2 : add setModel:NULL - destroying the C++ object is guaranteed, but not the menuController_ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -10 lines) Patch
M ui/app_list/app_list_menu.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/app_list/app_list_menu.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/app_list/cocoa/apps_search_box_controller.mm View 1 2 chunks +4 lines, -6 lines 0 comments Download
M ui/app_list/cocoa/apps_search_box_controller_unittest.mm View 5 chunks +40 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
tapted
https://codereview.chromium.org/25535006/diff/1/ui/app_list/cocoa/apps_search_box_controller_unittest.mm File ui/app_list/cocoa/apps_search_box_controller_unittest.mm (right): https://codereview.chromium.org/25535006/diff/1/ui/app_list/cocoa/apps_search_box_controller_unittest.mm#newcode184 ui/app_list/cocoa/apps_search_box_controller_unittest.mm:184: EXPECT_EQ(AppListMenu::SELECT_PROFILE, menu_model->GetItemCount()); This line actually had a bug. Adding ...
7 years, 2 months ago (2013-10-02 03:56:33 UTC) #1
calamity
lgtm
7 years, 2 months ago (2013-10-02 05:11:27 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/25535006/11001
7 years, 2 months ago (2013-10-02 05:33:01 UTC) #3
commit-bot: I haz the power
7 years, 2 months ago (2013-10-02 08:20:23 UTC) #4
Message was sent while issue was closed.
Change committed as 226435

Powered by Google App Engine
This is Rietveld 408576698