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

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

Issue 2121083004: Upstream ProfileOAuth2TokenServiceProviderImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style nits Created 4 years, 5 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/signin_error_provider.h
diff --git a/ios/public/provider/chrome/browser/signin/signin_error_provider.h b/ios/public/provider/chrome/browser/signin/signin_error_provider.h
index cf44c881b31c9e5561761809ff1fef3bdb6ee7b0..39db1a8b8828ae79a8fd157c1b1ff0e07e6a1c7e 100644
--- a/ios/public/provider/chrome/browser/signin/signin_error_provider.h
+++ b/ios/public/provider/chrome/browser/signin/signin_error_provider.h
@@ -47,6 +47,12 @@ class SigninErrorProvider {
// Tests if an NSError is user cancellation error.
virtual bool IsCanceled(NSError* error);
+ // Tests if an NSError is an authorization forbidden error.
+ virtual bool IsForbidden(NSError* error);
+
+ // Tests if an NSError is a bad request error.
+ virtual bool IsBadRequest(NSError* error);
+
// Constant in JSON error responses to server requests indicating that
// the authentication was revoked by the server.
virtual NSString* GetInvalidGrantJsonErrorKey();

Powered by Google App Engine
This is Rietveld 408576698