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

Side by Side Diff: google_apis/gaia/google_service_auth_error.cc

Issue 213363003: Delete some dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: brettw Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « google_apis/gaia/google_service_auth_error.h ('k') | net/cert/x509_certificate_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "google_apis/gaia/google_service_auth_error.h" 5 #include "google_apis/gaia/google_service_auth_error.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/json/json_reader.h" 9 #include "base/json/json_reader.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 } 74 }
75 75
76 GoogleServiceAuthError::GoogleServiceAuthError( 76 GoogleServiceAuthError::GoogleServiceAuthError(
77 State state, 77 State state,
78 const std::string& error_message) 78 const std::string& error_message)
79 : state_(state), 79 : state_(state),
80 network_error_(0), 80 network_error_(0),
81 error_message_(error_message) { 81 error_message_(error_message) {
82 } 82 }
83 83
84 GoogleServiceAuthError::GoogleServiceAuthError(const std::string& error_message)
85 : state_(INVALID_GAIA_CREDENTIALS),
86 network_error_(0),
87 error_message_(error_message) {
88 }
89
90 // static 84 // static
91 GoogleServiceAuthError 85 GoogleServiceAuthError
92 GoogleServiceAuthError::FromConnectionError(int error) { 86 GoogleServiceAuthError::FromConnectionError(int error) {
93 return GoogleServiceAuthError(CONNECTION_FAILED, error); 87 return GoogleServiceAuthError(CONNECTION_FAILED, error);
94 } 88 }
95 89
96 // static 90 // static
97 GoogleServiceAuthError GoogleServiceAuthError::FromClientLoginCaptchaChallenge( 91 GoogleServiceAuthError GoogleServiceAuthError::FromClientLoginCaptchaChallenge(
98 const std::string& captcha_token, 92 const std::string& captcha_token,
99 const GURL& captcha_image_url, 93 const GURL& captcha_image_url,
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 const GURL& captcha_audio_url, 246 const GURL& captcha_audio_url,
253 const GURL& captcha_image_url, 247 const GURL& captcha_image_url,
254 const GURL& captcha_unlock_url, 248 const GURL& captcha_unlock_url,
255 int image_width, 249 int image_width,
256 int image_height) 250 int image_height)
257 : state_(s), 251 : state_(s),
258 captcha_(captcha_token, captcha_audio_url, captcha_image_url, 252 captcha_(captcha_token, captcha_audio_url, captcha_image_url,
259 captcha_unlock_url, image_width, image_height), 253 captcha_unlock_url, image_width, image_height),
260 network_error_(0) { 254 network_error_(0) {
261 } 255 }
262
263 GoogleServiceAuthError::GoogleServiceAuthError(
264 State s,
265 const std::string& captcha_token,
266 const std::string& prompt_text,
267 const std::string& alternate_text,
268 int field_length)
269 : state_(s),
270 second_factor_(captcha_token, prompt_text, alternate_text, field_length),
271 network_error_(0) {
272 }
OLDNEW
« no previous file with comments | « google_apis/gaia/google_service_auth_error.h ('k') | net/cert/x509_certificate_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698