Index: chrome/browser/signin/signin_global_error.h |
diff --git a/chrome/browser/signin/signin_global_error.h b/chrome/browser/signin/signin_global_error.h |
index b316f5e3035d15e7571e48c5fb5b095d1b772325..1f4b9d34ed415e57853d9f73cba18f3ee1768b47 100644 |
--- a/chrome/browser/signin/signin_global_error.h |
+++ b/chrome/browser/signin/signin_global_error.h |
@@ -12,6 +12,7 @@ |
#include "google_apis/gaia/google_service_auth_error.h" |
class Profile; |
+class SigninManager; |
// Shows auth errors on the wrench menu using a bubble view and a |
// menu item. Services that wish to expose auth errors to the user should |
@@ -30,7 +31,7 @@ class SigninGlobalError : public GlobalError { |
virtual GoogleServiceAuthError GetAuthStatus() const = 0; |
}; |
- explicit SigninGlobalError(Profile* profile); |
+ SigninGlobalError(SigninManager* signin_manager, Profile* profile); |
virtual ~SigninGlobalError(); |
// Adds a provider which the SigninGlobalError object will start querying for |
@@ -44,6 +45,8 @@ class SigninGlobalError : public GlobalError { |
// Invoked when the auth status of an AuthStatusProvider has changed. |
void AuthStatusChanged(); |
+ GoogleServiceAuthError GetLastAuthError() const { return auth_error_; } |
+ |
// GlobalError implementation. |
virtual bool HasBadge() OVERRIDE; |
virtual bool HasMenuItem() OVERRIDE; |
@@ -66,6 +69,9 @@ class SigninGlobalError : public GlobalError { |
// NONE if AuthStatusChanged() has never been invoked). |
GoogleServiceAuthError auth_error_; |
+ // The SigninManager that owns this object. |
+ SigninManager* signin_manager_; |
+ |
// The Profile this object belongs to. |
Profile* profile_; |
}; |