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

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

Issue 19567004: Convert SigninTracker to use OAuth2TokenService notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 3 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/first_run/first_run.cc ('k') | chrome/browser/signin/fake_profile_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/fake_profile_oauth2_token_service.h
diff --git a/chrome/browser/signin/fake_profile_oauth2_token_service.h b/chrome/browser/signin/fake_profile_oauth2_token_service.h
index cd5bc8b493e4e77ea65c31e015090e0a8709ef36..336938e6de2a623c80b4fa43f35c7c0b82f787cd 100644
--- a/chrome/browser/signin/fake_profile_oauth2_token_service.h
+++ b/chrome/browser/signin/fake_profile_oauth2_token_service.h
@@ -5,14 +5,18 @@
#ifndef CHROME_BROWSER_SIGNIN_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_H_
#define CHROME_BROWSER_SIGNIN_FAKE_PROFILE_OAUTH2_TOKEN_SERVICE_H_
-#include "chrome/browser/signin/profile_oauth2_token_service.h"
-
#include <string>
#include <vector>
#include "base/compiler_specific.h"
#include "base/memory/weak_ptr.h"
+#if defined(OS_ANDROID)
+#include "chrome/browser/signin/android_profile_oauth2_token_service.h"
+#else
+#include "chrome/browser/signin/profile_oauth2_token_service.h"
+#endif
+
namespace content {
class BrowserContext;
}
@@ -37,7 +41,12 @@ class BrowserContext;
// // ...or make them fail...
// IssueErrorForScope(scopes, GoogleServiceAuthError(INVALID_GAIA_CREDENTIALS));
//
-class FakeProfileOAuth2TokenService : public ProfileOAuth2TokenService {
+class FakeProfileOAuth2TokenService
+#if defined(OS_ANDROID)
+ : public AndroidProfileOAuth2TokenService {
+#else
+ : public ProfileOAuth2TokenService {
+#endif
public:
struct PendingRequest {
PendingRequest();
@@ -74,8 +83,6 @@ class FakeProfileOAuth2TokenService : public ProfileOAuth2TokenService {
void IssueErrorForAllPendingRequests(const GoogleServiceAuthError& error);
- virtual void Shutdown() OVERRIDE;
-
// Helper function to be used with
// BrowserContextKeyedService::SetTestingFactory().
static BrowserContextKeyedService* Build(content::BrowserContext* profile);
« no previous file with comments | « chrome/browser/first_run/first_run.cc ('k') | chrome/browser/signin/fake_profile_oauth2_token_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698