1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ios/public/provider/chrome/browser/signin/signin_error_provider.h"
10 SigninErrorProvider* g_signin_error_provider = nullptr;
13 void SetSigninErrorProvider(SigninErrorProvider* provider) {
14 g_signin_error_provider = provider;
17 SigninErrorProvider* GetSigninErrorProvider() {
18 return g_signin_error_provider;
21 SigninErrorProvider::SigninErrorProvider() {}
23 SigninErrorProvider::~SigninErrorProvider() {}
25 SigninErrorCategory SigninErrorProvider::GetErrorCategory(NSError* error) {
26 return SigninErrorCategory::UNKNOWN_ERROR;
29 bool SigninErrorProvider::IsCanceled(NSError* error) {
33 NSString* SigninErrorProvider::GetInvalidGrantJsonErrorKey() {
34 return @"invalid_grant_error_key";
37 NSString* SigninErrorProvider::GetSigninErrorDomain() {
38 return @"signin_error_domain";
41 int SigninErrorProvider::GetCode(SigninError error) {