summaryrefslogtreecommitdiffstats
path: root/chrome/browser/wrench_menu_model.h
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-31 19:22:41 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-31 19:22:41 +0000
commitb21d691e4e486071ac8601fee7867c29729faca6 (patch)
tree7829cdf53b53a938bcedc4c0565dea3fbb406684 /chrome/browser/wrench_menu_model.h
parent61c13e8d5361469479e5c0bf61d0c25a5402ef15 (diff)
downloadchromium_src-b21d691e4e486071ac8601fee7867c29729faca6.zip
chromium_src-b21d691e4e486071ac8601fee7867c29729faca6.tar.gz
chromium_src-b21d691e4e486071ac8601fee7867c29729faca6.tar.bz2
The "Update Chrome" menu item should appear in addition to the About menu.
It should not replace it. This patch modifications to the GTK and Cocoa ports to make the update chrome item appear when an update is available. On win/chromeos, the menu item is always there but disabled, since I'm having some problems figuring out the views custom menu implementation. BUG=46221 TEST=The upgrade item should now appear under instead of replacing the about command. Review URL: http://codereview.chromium.org/3143046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58040 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/wrench_menu_model.h')
-rw-r--r--chrome/browser/wrench_menu_model.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/wrench_menu_model.h b/chrome/browser/wrench_menu_model.h
index b3e2298..e344646 100644
--- a/chrome/browser/wrench_menu_model.h
+++ b/chrome/browser/wrench_menu_model.h
@@ -83,6 +83,7 @@ class WrenchMenuModel : public menus::SimpleMenuModel,
virtual void ExecuteCommand(int command_id);
virtual bool IsCommandIdChecked(int command_id) const;
virtual bool IsCommandIdEnabled(int command_id) const;
+ virtual bool IsCommandIdVisible(int command_id) const;
virtual bool GetAcceleratorForCommandId(
int command_id,
menus::Accelerator* accelerator);
@@ -123,7 +124,6 @@ class WrenchMenuModel : public menus::SimpleMenuModel,
double GetZoom(bool* enable_increment, bool* enable_decrement);
string16 GetSyncMenuLabel() const;
- string16 GetAboutEntryMenuLabel() const;
// Models for the special menu items with buttons.
scoped_ptr<menus::ButtonMenuItemModel> edit_menu_item_model_;