Index: chrome/browser/ui/toolbar/wrench_menu_model.h |
diff --git a/chrome/browser/ui/toolbar/wrench_menu_model.h b/chrome/browser/ui/toolbar/wrench_menu_model.h |
index 110eb20e64d489b858c168809d2477118e6c592e..33992881fb36fbb57cc4ca10f7a3f3e43fc84702 100644 |
--- a/chrome/browser/ui/toolbar/wrench_menu_model.h |
+++ b/chrome/browser/ui/toolbar/wrench_menu_model.h |
@@ -16,6 +16,7 @@ |
class BookmarkSubMenuModel; |
class Browser; |
+class GlobalError; |
class RecentTabsSubMenuModel; |
class TabStripModel; |
@@ -147,7 +148,11 @@ class WrenchMenuModel : public ui::SimpleMenuModel, |
// |new_menu| should be set to true. |
void CreateZoomMenu(bool new_menu); |
- string16 GetSyncMenuLabel() const; |
+ // Various GlobalError objects share a single menu item. This helper routine |
+ // returns the GlobalError object that is currently displaying a message in |
+ // that item, otherwise returns NULL if we should display one of the default |
+ // messages. |
+ GlobalError* GetActiveSignedInServiceError() const; |
// Models for the special menu items with buttons. |
scoped_ptr<ui::ButtonMenuItemModel> edit_menu_item_model_; |