From a3354454938083e933e2c988777a1c53d94b4277 Mon Sep 17 00:00:00 2001 From: "xiyuan@chromium.org" Date: Sat, 6 Feb 2010 00:16:40 +0000 Subject: Rebuild app menu in ToolbarView::RunAppMenu When "enable-udd-profiles" switch is set, update profile submenu and rebuild app menu if necessary. BUG=30417 TEST=Verify that comment 5 in issue 30417 is fixed. Review URL: http://codereview.chromium.org/571015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38281 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/toolbar_view.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chrome/browser/views/toolbar_view.cc') diff --git a/chrome/browser/views/toolbar_view.cc b/chrome/browser/views/toolbar_view.cc index 0762ce2..cde3b64 100644 --- a/chrome/browser/views/toolbar_view.cc +++ b/chrome/browser/views/toolbar_view.cc @@ -706,5 +706,7 @@ void ToolbarView::RunPageMenu(const gfx::Point& pt) { } void ToolbarView::RunAppMenu(const gfx::Point& pt) { + if (app_menu_model_->BuildProfileSubMenu()) + app_menu_menu_->Rebuild(); app_menu_menu_->RunMenuAt(pt, views::Menu2::ALIGN_TOPRIGHT); } -- cgit v1.1