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

Side by Side Diff: ios/public/provider/chrome/browser/signin/signin_error_provider.mm

Issue 2438603004: Remove old getter/setter for SigninErrorProvider. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « ios/public/provider/chrome/browser/signin/signin_error_provider.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 {
10 SigninErrorProvider* g_signin_error_provider = nullptr;
11 }
12
13 void SetSigninErrorProvider(SigninErrorProvider* provider) {
14 g_signin_error_provider = provider;
15 }
16
17 SigninErrorProvider* GetSigninErrorProvider() {
18 return g_signin_error_provider;
19 }
20
21 SigninErrorProvider::SigninErrorProvider() {} 9 SigninErrorProvider::SigninErrorProvider() {}
22 10
23 SigninErrorProvider::~SigninErrorProvider() {} 11 SigninErrorProvider::~SigninErrorProvider() {}
24 12
25 SigninErrorCategory SigninErrorProvider::GetErrorCategory(NSError* error) { 13 SigninErrorCategory SigninErrorProvider::GetErrorCategory(NSError* error) {
26 return SigninErrorCategory::UNKNOWN_ERROR; 14 return SigninErrorCategory::UNKNOWN_ERROR;
27 } 15 }
28 16
29 bool SigninErrorProvider::IsCanceled(NSError* error) { 17 bool SigninErrorProvider::IsCanceled(NSError* error) {
30 return false; 18 return false;
(...skipping 13 matching lines...) Expand all
44 32
45 NSString* SigninErrorProvider::GetSigninErrorDomain() { 33 NSString* SigninErrorProvider::GetSigninErrorDomain() {
46 return @"signin_error_domain"; 34 return @"signin_error_domain";
47 } 35 }
48 36
49 int SigninErrorProvider::GetCode(SigninError error) { 37 int SigninErrorProvider::GetCode(SigninError error) {
50 return 0; 38 return 0;
51 } 39 }
52 40
53 } // namesace ios 41 } // namesace ios
OLDNEW
« no previous file with comments | « ios/public/provider/chrome/browser/signin/signin_error_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698