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

Unified Diff: chrome/browser/signin/signin_global_error.h

Issue 288813003: Add username of account that has an auth error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 6 years, 7 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/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_;
« no previous file with comments | « chrome/browser/signin/signin_error_notifier_ash_unittest.cc ('k') | chrome/browser/signin/signin_global_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698