Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(977)

Unified Diff: chrome/browser/ui/toolbar/wrench_menu_model.h

Issue 11817045: Move auth-error reporting code out of SyncGlobalError and into SigninGlobalError (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disabled ExtensionActionContextMenuTest.BrowserAction Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698