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

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: Address final comments Created 5 years, 6 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..7643fffab2d7cdc81f4c92b33e9a5160806a35f6 100644
--- a/chrome/browser/signin/profile_oauth2_token_service_factory.h
+++ b/chrome/browser/signin/profile_oauth2_token_service_factory.h
@@ -11,12 +11,6 @@
class ProfileOAuth2TokenService;
class Profile;
-#if defined(OS_ANDROID)
-class AndroidProfileOAuth2TokenService;
-#else
-class MutableProfileOAuth2TokenService;
-#endif
-
// Singleton that owns all ProfileOAuth2TokenServices and associates them with
// Profiles. Listens for the Profile's destruction notification and cleans up
// the associated ProfileOAuth2TokenService.
@@ -29,30 +23,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