summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/signin/ios/browser/fake_profile_oauth2_token_service_ios_provider.h1
-rw-r--r--components/signin/ios/browser/fake_profile_oauth2_token_service_ios_provider.mm1
-rw-r--r--components/signin/ios/browser/profile_oauth2_token_service_ios_provider.h4
-rw-r--r--components/signin/ios/browser/profile_oauth2_token_service_ios_provider.mm6
4 files changed, 2 insertions, 10 deletions
diff --git a/components/signin/ios/browser/fake_profile_oauth2_token_service_ios_provider.h b/components/signin/ios/browser/fake_profile_oauth2_token_service_ios_provider.h
index 161ef68..31e5a75 100644
--- a/components/signin/ios/browser/fake_profile_oauth2_token_service_ios_provider.h
+++ b/components/signin/ios/browser/fake_profile_oauth2_token_service_ios_provider.h
@@ -30,6 +30,7 @@ class FakeProfileOAuth2TokenServiceIOSProvider
AccountInfo GetAccountInfoForEmail(const std::string& email) const override;
AccountInfo GetAccountInfoForGaia(const std::string& gaia) const override;
AuthenticationErrorCategory GetAuthenticationErrorCategory(
+ const std::string& gaia_id,
NSError* error) const override;
// Methods to configure this fake provider.
diff --git a/components/signin/ios/browser/fake_profile_oauth2_token_service_ios_provider.mm b/components/signin/ios/browser/fake_profile_oauth2_token_service_ios_provider.mm
index 3a6e46f..a7337f4 100644
--- a/components/signin/ios/browser/fake_profile_oauth2_token_service_ios_provider.mm
+++ b/components/signin/ios/browser/fake_profile_oauth2_token_service_ios_provider.mm
@@ -93,6 +93,7 @@ void FakeProfileOAuth2TokenServiceIOSProvider::
AuthenticationErrorCategory
FakeProfileOAuth2TokenServiceIOSProvider::GetAuthenticationErrorCategory(
+ const std::string& gaia_id,
NSError* error) const {
DCHECK(error);
return kAuthenticationErrorCategoryAuthorizationErrors;
diff --git a/components/signin/ios/browser/profile_oauth2_token_service_ios_provider.h b/components/signin/ios/browser/profile_oauth2_token_service_ios_provider.h
index 0262019..ed8b3d6 100644
--- a/components/signin/ios/browser/profile_oauth2_token_service_ios_provider.h
+++ b/components/signin/ios/browser/profile_oauth2_token_service_ios_provider.h
@@ -77,10 +77,6 @@ class ProfileOAuth2TokenServiceIOSProvider {
virtual AuthenticationErrorCategory GetAuthenticationErrorCategory(
const std::string& gaia_id,
NSError* error) const;
-
- // Returns the authentication error category of |error|.
- virtual AuthenticationErrorCategory GetAuthenticationErrorCategory(
- NSError* error) const;
};
#endif // COMPONENTS_SIGNIN_IOS_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_PROVIDER_H_
diff --git a/components/signin/ios/browser/profile_oauth2_token_service_ios_provider.mm b/components/signin/ios/browser/profile_oauth2_token_service_ios_provider.mm
index 15a6637..372bfac 100644
--- a/components/signin/ios/browser/profile_oauth2_token_service_ios_provider.mm
+++ b/components/signin/ios/browser/profile_oauth2_token_service_ios_provider.mm
@@ -32,12 +32,6 @@ AuthenticationErrorCategory
ProfileOAuth2TokenServiceIOSProvider::GetAuthenticationErrorCategory(
const std::string& gaia_id,
NSError* error) const {
- return GetAuthenticationErrorCategory(error);
-}
-
-AuthenticationErrorCategory
-ProfileOAuth2TokenServiceIOSProvider::GetAuthenticationErrorCategory(
- NSError* error) const {
return kAuthenticationErrorCategoryUnknownErrors;
}