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

Unified Diff: ui/app_list/views/search_box_view.cc

Issue 79773005: Update app list search box menu when Users changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert: Add AppListViewDelegateObserver Created 7 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/search_box_view.cc
diff --git a/ui/app_list/views/search_box_view.cc b/ui/app_list/views/search_box_view.cc
index ba40bf3b5f346c5bac1621c84b4ecafd3abdb9f5..05130cbbf525f4ebf02cb8bae042afc84e1dd88b 100644
--- a/ui/app_list/views/search_box_view.cc
+++ b/ui/app_list/views/search_box_view.cc
@@ -187,8 +187,8 @@ void SearchBoxView::ButtonPressed(views::Button* sender,
}
void SearchBoxView::OnMenuButtonClicked(View* source, const gfx::Point& point) {
- if (!menu_)
- menu_.reset(new AppListMenuViews(view_delegate_));
+ // Always regenerate the menu in case view_delegate_->GetUsers() has changed.
tapted 2013/11/26 00:40:07 So, mac isn't affected by the checkmark-not-moving
+ menu_.reset(new AppListMenuViews(view_delegate_));
const gfx::Point menu_location =
menu_button_->GetBoundsInScreen().bottom_right() +
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698