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

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

Issue 1252323006: [iOS] Upstream //ios/chrome/browser/signin/signin_util (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add SigninErrorProvider Created 5 years, 4 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
« no previous file with comments | « ios/public/provider/chrome/browser/signin/signin_error_provider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/public/provider/chrome/browser/signin/signin_error_provider.mm
diff --git a/ios/public/provider/chrome/browser/signin/signin_error_provider.mm b/ios/public/provider/chrome/browser/signin/signin_error_provider.mm
new file mode 100644
index 0000000000000000000000000000000000000000..9574f7f64dc3b56a2898f660db7708a2626fa34e
--- /dev/null
+++ b/ios/public/provider/chrome/browser/signin/signin_error_provider.mm
@@ -0,0 +1,45 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ios/public/provider/chrome/browser/signin/signin_error_provider.h"
+
+namespace ios {
+
+namespace {
+SigninErrorProvider* g_signin_error_provider = nullptr;
+}
+
+void SetSigninErrorProvider(SigninErrorProvider* provider) {
+ g_signin_error_provider = provider;
+}
+
+SigninErrorProvider* GetSigninErrorProvider() {
+ return g_signin_error_provider;
+}
+
+SigninErrorProvider::SigninErrorProvider() {}
+
+SigninErrorProvider::~SigninErrorProvider() {}
+
+SigninErrorCategory SigninErrorProvider::GetErrorCategory(NSError* error) {
+ return SigninErrorCategory::UNKNOWN_ERROR;
+}
+
+bool SigninErrorProvider::IsCanceled(NSError* error) {
+ return false;
+}
+
+NSString* SigninErrorProvider::GetInvalidGrantJsonErrorKey() {
+ return @"invalid_grant_error_key";
+}
+
+NSString* SigninErrorProvider::GetSigninErrorDomain() {
+ return @"signin_error_domain";
+}
+
+int SigninErrorProvider::GetCode(SigninError error) {
+ return 0;
+}
+
+} // namesace ios
« 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