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

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

Issue 1143323005: Refactor AO2TS to make it easier to componentize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor AO2TS to make it easier to componentize. Created 5 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/profile_oauth2_token_service_factory.h
diff --git a/chrome/browser/signin/profile_oauth2_token_service_factory.h b/chrome/browser/signin/profile_oauth2_token_service_factory.h
index f972e6c7575ecae8c2acc3af3f233a57aea53f9e..ac15a7c527129fc9598b1e38b646ae8d58ba79dd 100644
--- a/chrome/browser/signin/profile_oauth2_token_service_factory.h
+++ b/chrome/browser/signin/profile_oauth2_token_service_factory.h
@@ -12,7 +12,7 @@ class ProfileOAuth2TokenService;
class Profile;
#if defined(OS_ANDROID)
-class AndroidProfileOAuth2TokenService;
+class OAuth2TokenServiceDelegateAndroid;
#else
class MutableProfileOAuth2TokenService;
#endif
@@ -29,30 +29,12 @@ class ProfileOAuth2TokenServiceFactory
// incognito).
static ProfileOAuth2TokenService* GetForProfile(Profile* profile);
- // Returns the platform specific instance of ProfileOAuth2TokenService
- // associated with this profile (creating one if none exists). Returns NULL
- // if this profile cannot have a ProfileOAuth2TokenService (for example,
- // if |profile| is incognito).
- #if defined(OS_ANDROID)
- static AndroidProfileOAuth2TokenService* GetPlatformSpecificForProfile(
- Profile* profile);
- #else
- static MutableProfileOAuth2TokenService* GetPlatformSpecificForProfile(
- Profile* profile);
- #endif
-
// Returns an instance of the ProfileOAuth2TokenServiceFactory singleton.
static ProfileOAuth2TokenServiceFactory* GetInstance();
private:
friend struct DefaultSingletonTraits<ProfileOAuth2TokenServiceFactory>;
-#if defined(OS_ANDROID)
- typedef AndroidProfileOAuth2TokenService PlatformSpecificOAuth2TokenService;
-#else
- typedef MutableProfileOAuth2TokenService PlatformSpecificOAuth2TokenService;
-#endif
-
ProfileOAuth2TokenServiceFactory();
~ProfileOAuth2TokenServiceFactory() override;

Powered by Google App Engine
This is Rietveld 408576698