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

Unified Diff: ios/public/provider/chrome/browser/keyed_service_provider.h

Issue 1164043002: [iOS] Add accessor for ProfileOAuth2TokenServiceIOS instance and factory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | ios/public/provider/chrome/browser/keyed_service_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/public/provider/chrome/browser/keyed_service_provider.h
diff --git a/ios/public/provider/chrome/browser/keyed_service_provider.h b/ios/public/provider/chrome/browser/keyed_service_provider.h
index ab5bcf1b888440d5fb38fbfcd609866632976026..d7ef72d77cee6ca6cf752fa01b0ed1be5ebb2d75 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();
« no previous file with comments | « no previous file | ios/public/provider/chrome/browser/keyed_service_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698