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

Unified Diff: ios/public/provider/chrome/browser/signin/chrome_identity_service.h

Issue 2274163002: Allow ChromeIdentityService in ChromeBrowserProvider to be overriden. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename method used for testing Created 4 years, 4 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: ios/public/provider/chrome/browser/signin/chrome_identity_service.h
diff --git a/ios/public/provider/chrome/browser/signin/chrome_identity_service.h b/ios/public/provider/chrome/browser/signin/chrome_identity_service.h
index a1b28df728dd1d15ae64793dcfd4f903c06e6798..0ced2b486ee08567e226f2233c81ad470368cd49 100644
--- a/ios/public/provider/chrome/browser/signin/chrome_identity_service.h
+++ b/ios/public/provider/chrome/browser/signin/chrome_identity_service.h
@@ -19,14 +19,18 @@
@protocol ChromeIdentityInteractionManagerDelegate;
@class NSArray;
@class NSDate;
+@class NSDictionary;
@class NSError;
@class NSString;
+@class NSURL;
+@class UIApplication;
@class UIImage;
@class UINavigationController;
namespace ios {
class ChromeBrowserState;
+class ChromeIdentityService;
// Callback passed to method |GetAccessTokenForScopes()| that returns the
// information of the obtained access token to the caller.
@@ -86,6 +90,16 @@ class ChromeIdentityService {
ChromeIdentityService();
virtual ~ChromeIdentityService();
+ // Handles open URL authentication callback. Returns whether the URL was
+ // actually handled. This should be called within
+ // UIApplicationDelegate application:openURL:options:.
+ virtual bool HandleApplicationOpenURL(UIApplication* application,
+ NSURL* url,
+ NSDictionary* options);
+
+ // Dismisses all the dialogs created by the abstracted flows.
+ virtual void DismissDialogs();
+
// Returns a new account details controller to present. A cancel button is
// present as leading navigation item.
virtual base::scoped_nsobject<UINavigationController> NewAccountDetails(

Powered by Google App Engine
This is Rietveld 408576698