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

Side by Side Diff: chrome/browser/chromeos/login/login_status_consumer.h

Issue 12686006: Rename GoogleServiceAuthError::None() to AuthErrorNone() and LoginFailure::None() to LoginFailureNo… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_STATUS_CONSUMER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_STATUS_CONSUMER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_STATUS_CONSUMER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_STATUS_CONSUMER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 return error_ == b.error_; 49 return error_ == b.error_;
50 } 50 }
51 return true; 51 return true;
52 } 52 }
53 53
54 static LoginFailure FromNetworkAuthFailure( 54 static LoginFailure FromNetworkAuthFailure(
55 const GoogleServiceAuthError& error) { 55 const GoogleServiceAuthError& error) {
56 return LoginFailure(NETWORK_AUTH_FAILED, error); 56 return LoginFailure(NETWORK_AUTH_FAILED, error);
57 } 57 }
58 58
59 static LoginFailure None() { 59 static LoginFailure LoginFailureNone() {
60 return LoginFailure(NONE); 60 return LoginFailure(NONE);
61 } 61 }
62 62
63 const std::string GetErrorString() const { 63 const std::string GetErrorString() const {
64 switch (reason_) { 64 switch (reason_) {
65 case DATA_REMOVAL_FAILED: 65 case DATA_REMOVAL_FAILED:
66 return "Could not destroy your old data."; 66 return "Could not destroy your old data.";
67 case COULD_NOT_MOUNT_CRYPTOHOME: 67 case COULD_NOT_MOUNT_CRYPTOHOME:
68 return "Could not mount cryptohome."; 68 return "Could not mount cryptohome.";
69 case COULD_NOT_UNMOUNT_CRYPTOHOME: 69 case COULD_NOT_UNMOUNT_CRYPTOHOME:
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 bool using_oauth) = 0; 125 bool using_oauth) = 0;
126 // The current guest login attempt has succeeded. 126 // The current guest login attempt has succeeded.
127 virtual void OnOffTheRecordLoginSuccess() {} 127 virtual void OnOffTheRecordLoginSuccess() {}
128 // The same password didn't work both online and offline. 128 // The same password didn't work both online and offline.
129 virtual void OnPasswordChangeDetected(); 129 virtual void OnPasswordChangeDetected();
130 }; 130 };
131 131
132 } // namespace chromeos 132 } // namespace chromeos
133 133
134 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_STATUS_CONSUMER_H_ 134 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_STATUS_CONSUMER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_performer.cc ('k') | chrome/browser/chromeos/login/online_attempt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698