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

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

Issue 12077030: Allow signin to continue even if sync is disabled by policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows sync integration test failure 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
« no previous file with comments | « chrome/browser/signin/fake_auth_status_provider.cc ('k') | chrome/browser/signin/signin_global_error.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
};
« no previous file with comments | « chrome/browser/signin/fake_auth_status_provider.cc ('k') | chrome/browser/signin/signin_global_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698