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 dc0718c07d8c945c30d8ca557499f68c263c05dc..a6ab35efd095357a54cbd2479bd5523f2b434834 100644 |
--- a/chrome/browser/signin/signin_global_error.h |
+++ b/chrome/browser/signin/signin_global_error.h |
@@ -8,6 +8,7 @@ |
#include <set> |
#include "base/basictypes.h" |
#include "base/compiler_specific.h" |
+#include "base/gtest_prod_util.h" |
#include "chrome/browser/ui/global_error/global_error.h" |
#include "components/keyed_service/core/keyed_service.h" |
#include "components/signin/core/browser/signin_error_controller.h" |
@@ -23,6 +24,18 @@ class SigninGlobalError : public GlobalErrorWithStandardBubble, |
Profile* profile); |
virtual ~SigninGlobalError(); |
+ // Returns true if there is an authentication error. |
+ bool HasError(); |
+ |
+ // Shows re-authentication UI to the user in an attempt to fix the error. |
+ // The re-authentication UI will be shown in |browser|. |
+ void AttemptToFixError(Browser* browser); |
+ |
+ private: |
+ FRIEND_TEST_ALL_PREFIXES(SigninGlobalErrorTest, NoErrorAuthStatusProviders); |
+ FRIEND_TEST_ALL_PREFIXES(SigninGlobalErrorTest, ErrorAuthStatusProvider); |
+ FRIEND_TEST_ALL_PREFIXES(SigninGlobalErrorTest, AuthStatusEnumerateAllErrors); |
+ |
// KeyedService: |
virtual void Shutdown() OVERRIDE; |
@@ -43,7 +56,6 @@ class SigninGlobalError : public GlobalErrorWithStandardBubble, |
// SigninErrorController::Observer: |
virtual void OnErrorChanged() OVERRIDE; |
- private: |
// The Profile this service belongs to. |
Profile* profile_; |