diff options
author | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-16 22:13:52 +0000 |
---|---|---|
committer | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-16 22:13:52 +0000 |
commit | 2dc0dcd755fa2d8955cc54ad8e8302be663431b4 (patch) | |
tree | 5540669f61a71f9e2131b8ae6e2527460b8c93fb /chrome | |
parent | 1f42969aab0e25754545e9e7be3aa0044f76a162 (diff) | |
download | chromium_src-2dc0dcd755fa2d8955cc54ad8e8302be663431b4.zip chromium_src-2dc0dcd755fa2d8955cc54ad8e8302be663431b4.tar.gz chromium_src-2dc0dcd755fa2d8955cc54ad8e8302be663431b4.tar.bz2 |
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
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/views/toolbar_view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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); |