From 2dc0dcd755fa2d8955cc54ad8e8302be663431b4 Mon Sep 17 00:00:00 2001 From: "tim@chromium.org" Date: Fri, 16 Oct 2009 22:13:52 +0000 Subject: Always re-layout the app menu to get sync system state. BUG=25103 TEST=Start chrome, verify app menu says 'Synchronize my bookmarks...'. Click it, and set up sync. Reopen app menu, and it should say 'Bookmarks synced...' Review URL: http://codereview.chromium.org/274078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29339 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/toolbar_view.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 97b0381..0ec9557 100644 --- a/chrome/browser/views/toolbar_view.cc +++ b/chrome/browser/views/toolbar_view.cc @@ -1092,8 +1092,8 @@ void ToolbarView::CreateDevToolsMenuContents() { #endif void ToolbarView::CreateAppMenu() { - if (app_menu_contents_.get()) - return; + // We always rebuild the app menu so that we can get the current state of + // the sync system. app_menu_contents_.reset(new views::SimpleMenuModel(this)); app_menu_contents_->AddItemWithStringId(IDC_NEW_TAB, IDS_NEW_TAB); -- cgit v1.1