summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/toolbar_view.cc
diff options
context:
space:
mode:
authorxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-06 00:16:40 +0000
committerxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-06 00:16:40 +0000
commita3354454938083e933e2c988777a1c53d94b4277 (patch)
tree5cbfca015873e7c56eccefe80d1a979e500b33cb /chrome/browser/views/toolbar_view.cc
parent50a376f0d18e4f76a3ab04c46c66df965b6b2192 (diff)
downloadchromium_src-a3354454938083e933e2c988777a1c53d94b4277.zip
chromium_src-a3354454938083e933e2c988777a1c53d94b4277.tar.gz
chromium_src-a3354454938083e933e2c988777a1c53d94b4277.tar.bz2
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
Diffstat (limited to 'chrome/browser/views/toolbar_view.cc')
-rw-r--r--chrome/browser/views/toolbar_view.cc2
1 files changed, 2 insertions, 0 deletions
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);
}