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

Unified Diff: chrome/browser/ui/global_error_service.h

Issue 7948003: Update error badge on wrench menu button (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gkt and views Created 9 years, 3 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/global_error_service.h
diff --git a/chrome/browser/ui/global_error_service.h b/chrome/browser/ui/global_error_service.h
index 500cf2f51112ab6ea10adff4ae2eecc5be247295..71cd4576e4a958575fa5e27603baf5ac76470d49 100644
--- a/chrome/browser/ui/global_error_service.h
+++ b/chrome/browser/ui/global_error_service.h
@@ -12,6 +12,7 @@
#include "chrome/browser/profiles/profile_keyed_service.h"
class GlobalError;
+class Profile;
// This service manages a list of errors that are meant to be shown globally.
// If an error applies to an entire profile and not just to a tab then the
@@ -20,7 +21,7 @@ class GlobalError;
// - a sync error occurred
class GlobalErrorService : public ProfileKeyedService {
Elliot Glaysher 2011/09/19 19:16:06 Global Profile errors? rly?
sail 2011/09/19 19:19:59 I hate naming things.
public:
- GlobalErrorService();
+ explicit GlobalErrorService(Profile* profile);
virtual ~GlobalErrorService();
// Adds the given error to the list of global errors and displays it on
@@ -48,8 +49,14 @@ class GlobalErrorService : public ProfileKeyedService {
// Gets all errors.
const std::vector<GlobalError*>& errors() { return errors_; }
+ // Post a notification that a global error has changed and that the error UI
+ // should update it self. Pass NULL for the given error to mean all error UIs
+ // should update.
+ void NotifyErrorsChanged(GlobalError* error);
+
private:
std::vector<GlobalError*> errors_;
+ Profile* profile_;
DISALLOW_COPY_AND_ASSIGN(GlobalErrorService);
};

Powered by Google App Engine
This is Rietveld 408576698