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

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

Issue 5287003: Add user metrics for the login screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/tools
Patch Set: address comments Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include "chrome/common/net/gaia/gaia_auth_consumer.h" 10 #include "chrome/common/net/gaia/gaia_auth_consumer.h"
11 #include "chrome/common/net/gaia/google_service_auth_error.h" 11 #include "chrome/common/net/gaia/google_service_auth_error.h"
12 #include "net/base/net_errors.h" 12 #include "net/base/net_errors.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 class LoginFailure { 16 class LoginFailure {
17 public: 17 public:
18 enum FailureReason { 18 enum FailureReason {
19 NONE, 19 NONE,
20 COULD_NOT_MOUNT_CRYPTOHOME, 20 COULD_NOT_MOUNT_CRYPTOHOME,
21 COULD_NOT_MOUNT_TMPFS, 21 COULD_NOT_MOUNT_TMPFS,
22 COULD_NOT_UNMOUNT_CRYPTOHOME, 22 COULD_NOT_UNMOUNT_CRYPTOHOME,
23 DATA_REMOVAL_FAILED, // Could not destroy your old data 23 DATA_REMOVAL_FAILED, // Could not destroy your old data
24 LOGIN_TIMED_OUT, 24 LOGIN_TIMED_OUT,
25 UNLOCK_FAILED, 25 UNLOCK_FAILED,
26 NETWORK_AUTH_FAILED, // Could not authenticate against Google 26 NETWORK_AUTH_FAILED, // Could not authenticate against Google
27 NUM_FAILURE_REASONS, // This has to be the last item.
27 }; 28 };
28 29
29 explicit LoginFailure(FailureReason reason) 30 explicit LoginFailure(FailureReason reason)
30 : reason_(reason), 31 : reason_(reason),
31 error_(GoogleServiceAuthError::NONE) { 32 error_(GoogleServiceAuthError::NONE) {
32 DCHECK(reason != NETWORK_AUTH_FAILED); 33 DCHECK(reason != NETWORK_AUTH_FAILED);
33 } 34 }
34 35
35 inline bool operator==(const LoginFailure &b) const { 36 inline bool operator==(const LoginFailure &b) const {
36 if (reason_ != b.reason_) { 37 if (reason_ != b.reason_) {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // The same password didn't work both online and offline. 112 // The same password didn't work both online and offline.
112 virtual void OnPasswordChangeDetected( 113 virtual void OnPasswordChangeDetected(
113 const GaiaAuthConsumer::ClientLoginResult& credentials) { 114 const GaiaAuthConsumer::ClientLoginResult& credentials) {
114 NOTREACHED(); 115 NOTREACHED();
115 }; 116 };
116 }; 117 };
117 118
118 } // namespace chromeos 119 } // namespace chromeos
119 120
120 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_STATUS_CONSUMER_H_ 121 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_STATUS_CONSUMER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698