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

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

Issue 11886079: Revert 177136 due to memory error on Mac ASAN (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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/defaults.cc ('k') | chrome/browser/signin/oauth2_token_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/oauth2_token_service.h
===================================================================
--- chrome/browser/signin/oauth2_token_service.h (revision 177205)
+++ chrome/browser/signin/oauth2_token_service.h (working copy)
@@ -14,7 +14,6 @@
#include "base/memory/weak_ptr.h"
#include "base/time.h"
#include "chrome/browser/profiles/profile_keyed_service.h"
-#include "chrome/browser/signin/signin_global_error.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "net/url_request/url_request_context_getter.h"
@@ -47,7 +46,6 @@
// Note the request should be started from the UI thread. To start a request
// from other thread, please use OAuth2TokenServiceRequest.
class OAuth2TokenService : public content::NotificationObserver,
- public SigninGlobalError::AuthStatusProvider,
public ProfileKeyedService {
public:
// Class representing a request that fetches an OAuth2 access token.
@@ -82,9 +80,6 @@
// Initializes this token service with the profile.
void Initialize(Profile* profile);
- // ProfileKeyedService implementation.
- virtual void Shutdown() OVERRIDE;
-
// Starts a request for an OAuth2 access token using the OAuth2 refresh token
// maintained by TokenService. The caller owns the returned Request. |scopes|
// is the set of scopes to get an access token for, |consumer| is the object
@@ -104,9 +99,6 @@
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
- // SigninGlobalError::AuthStatusProvider implementation.
- virtual GoogleServiceAuthError GetAuthStatus() const OVERRIDE;
-
private:
// Class that fetches an OAuth2 access token for a given set of scopes and
// OAuth2 refresh token.
@@ -143,16 +135,9 @@
// Called when |fetcher| finishes fetching.
void OnFetchComplete(Fetcher* fetcher);
- // Updates the internal cache of the result from the most-recently-completed
- // auth request (used for reporting errors to the user).
- void UpdateAuthError(const GoogleServiceAuthError& error);
-
// The profile with which this instance was initialized, or NULL.
Profile* profile_;
- // The auth status from the most-recently-completed request.
- GoogleServiceAuthError last_auth_error_;
-
// Getter to use for fetchers.
scoped_refptr<net::URLRequestContextGetter> getter_;
« no previous file with comments | « chrome/browser/defaults.cc ('k') | chrome/browser/signin/oauth2_token_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698