| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ios/public/provider/chrome/browser/signin/signin_error_provider.h" | 5 #include "ios/public/provider/chrome/browser/signin/signin_error_provider.h" |
| 6 | 6 |
| 7 namespace ios { | 7 namespace ios { |
| 8 | 8 |
| 9 namespace { | 9 namespace { |
| 10 SigninErrorProvider* g_signin_error_provider = nullptr; | 10 SigninErrorProvider* g_signin_error_provider = nullptr; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 SigninErrorProvider::~SigninErrorProvider() {} | 23 SigninErrorProvider::~SigninErrorProvider() {} |
| 24 | 24 |
| 25 SigninErrorCategory SigninErrorProvider::GetErrorCategory(NSError* error) { | 25 SigninErrorCategory SigninErrorProvider::GetErrorCategory(NSError* error) { |
| 26 return SigninErrorCategory::UNKNOWN_ERROR; | 26 return SigninErrorCategory::UNKNOWN_ERROR; |
| 27 } | 27 } |
| 28 | 28 |
| 29 bool SigninErrorProvider::IsCanceled(NSError* error) { | 29 bool SigninErrorProvider::IsCanceled(NSError* error) { |
| 30 return false; | 30 return false; |
| 31 } | 31 } |
| 32 | 32 |
| 33 bool SigninErrorProvider::IsForbidden(NSError* error) { |
| 34 return false; |
| 35 } |
| 36 |
| 37 bool SigninErrorProvider::IsBadRequest(NSError* error) { |
| 38 return false; |
| 39 } |
| 40 |
| 33 NSString* SigninErrorProvider::GetInvalidGrantJsonErrorKey() { | 41 NSString* SigninErrorProvider::GetInvalidGrantJsonErrorKey() { |
| 34 return @"invalid_grant_error_key"; | 42 return @"invalid_grant_error_key"; |
| 35 } | 43 } |
| 36 | 44 |
| 37 NSString* SigninErrorProvider::GetSigninErrorDomain() { | 45 NSString* SigninErrorProvider::GetSigninErrorDomain() { |
| 38 return @"signin_error_domain"; | 46 return @"signin_error_domain"; |
| 39 } | 47 } |
| 40 | 48 |
| 41 int SigninErrorProvider::GetCode(SigninError error) { | 49 int SigninErrorProvider::GetCode(SigninError error) { |
| 42 return 0; | 50 return 0; |
| 43 } | 51 } |
| 44 | 52 |
| 45 } // namesace ios | 53 } // namesace ios |
| OLD | NEW |