diff options
author | sdefresne <sdefresne@chromium.org> | 2015-06-07 01:00:02 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-07 08:00:45 +0000 |
commit | 470b6953c287c45c2bb0aa56b5f7d27b6781cdec (patch) | |
tree | ffd1b24730dac15128ba1d95b95cd3ec39806a4e /ios | |
parent | 352e317da0aeda5c4e1e21a81d4480536e77b81e (diff) | |
download | chromium_src-470b6953c287c45c2bb0aa56b5f7d27b6781cdec.zip chromium_src-470b6953c287c45c2bb0aa56b5f7d27b6781cdec.tar.gz chromium_src-470b6953c287c45c2bb0aa56b5f7d27b6781cdec.tar.bz2 |
[iOS] Add accessor for ProfileOAuth2TokenServiceIOS instance and factory
BUG=429756
Review URL: https://codereview.chromium.org/1164043002
Cr-Commit-Position: refs/heads/master@{#333227}
Diffstat (limited to 'ios')
-rw-r--r-- | ios/public/provider/chrome/browser/keyed_service_provider.cc | 11 | ||||
-rw-r--r-- | ios/public/provider/chrome/browser/keyed_service_provider.h | 10 |
2 files changed, 21 insertions, 0 deletions
diff --git a/ios/public/provider/chrome/browser/keyed_service_provider.cc b/ios/public/provider/chrome/browser/keyed_service_provider.cc index e5782af..09991f6 100644 --- a/ios/public/provider/chrome/browser/keyed_service_provider.cc +++ b/ios/public/provider/chrome/browser/keyed_service_provider.cc @@ -25,6 +25,17 @@ KeyedServiceProvider::GetProfileOAuth2TokenServiceForBrowserState( return nullptr; } +KeyedServiceBaseFactory* +KeyedServiceProvider::GetProfileOAuth2TokenServiceIOSFactory() { + return nullptr; +} + +ProfileOAuth2TokenServiceIOS* +KeyedServiceProvider::GetProfileOAuth2TokenServiceIOSForBrowserState( + ChromeBrowserState* browser_state) { + return nullptr; +} + KeyedServiceBaseFactory* KeyedServiceProvider::GetSigninManagerFactory() { return nullptr; } diff --git a/ios/public/provider/chrome/browser/keyed_service_provider.h b/ios/public/provider/chrome/browser/keyed_service_provider.h index ab5bcf1..d7ef72d 100644 --- a/ios/public/provider/chrome/browser/keyed_service_provider.h +++ b/ios/public/provider/chrome/browser/keyed_service_provider.h @@ -12,6 +12,7 @@ enum class ServiceAccessType; class KeyedServiceBaseFactory; class ProfileOAuth2TokenService; +class ProfileOAuth2TokenServiceIOS; class SigninManager; namespace autofill { @@ -46,6 +47,15 @@ class KeyedServiceProvider { GetProfileOAuth2TokenServiceForBrowserState( ChromeBrowserState* browser_state); + // Returns the ProfileOAuth2TokenServiceIOS factory for dependencies. + virtual KeyedServiceBaseFactory* GetProfileOAuth2TokenServiceIOSFactory(); + + // Returns an instance of ProfileOAuth2TokenServiceIOS tied to + // |browser_state|. + virtual ProfileOAuth2TokenServiceIOS* + GetProfileOAuth2TokenServiceIOSForBrowserState( + ChromeBrowserState* browser_state); + // Returns the SigninManager factory for dependencies. virtual KeyedServiceBaseFactory* GetSigninManagerFactory(); |