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

Side by Side Diff: chrome/browser/signin/easy_unlock_metrics.h

Issue 887093004: [Cleanup] Move the Easy Unlock metrics files out of the chromeos directory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_EASY_UNLOCK_EASY_UNLOCK_METRICS_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_EASY_UNLOCK_METRICS_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_METRICS_H_ 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_METRICS_H_
7
8 namespace chromeos {
9 7
10 // Tracking login events for Easy unlock metrics. 8 // Tracking login events for Easy unlock metrics.
11 // This enum is used to define the buckets for an enumerated UMA histogram. 9 // This enum is used to define the buckets for an enumerated UMA histogram.
12 // Hence, 10 // Hence,
13 // (a) existing enumerated constants should never be deleted or reordered, and 11 // (a) existing enumerated constants should never be deleted or reordered, and
14 // (b) new constants should only be appended at the end of the enumeration. 12 // (b) new constants should only be appended at the end of the enumeration.
15 enum EasyUnlockLoginEvent { 13 enum EasyUnlockLoginEvent {
16 // User is successfully authenticated using Easy Sign-in. 14 // User is successfully authenticated using Easy Sign-in.
17 EASY_SIGN_IN_SUCCESS = 0, 15 EASY_SIGN_IN_SUCCESS = 0,
18 // Easy sign-in failed to authenticate the user. 16 // Easy sign-in failed to authenticate the user.
(...skipping 17 matching lines...) Expand all
36 PASSWORD_SIGN_IN_PHONE_NOT_AUTHENTICATED = 9, 34 PASSWORD_SIGN_IN_PHONE_NOT_AUTHENTICATED = 9,
37 // Password is used for sign-in because phone is locked. 35 // Password is used for sign-in because phone is locked.
38 PASSWORD_SIGN_IN_PHONE_LOCKED = 10, 36 PASSWORD_SIGN_IN_PHONE_LOCKED = 10,
39 // Password is used for sign-in because phone does not have lock screen. 37 // Password is used for sign-in because phone does not have lock screen.
40 PASSWORD_SIGN_IN_PHONE_NOT_LOCKABLE = 11, 38 PASSWORD_SIGN_IN_PHONE_NOT_LOCKABLE = 11,
41 // Password is used for sign-in because phone is not close enough (roughly, 39 // Password is used for sign-in because phone is not close enough (roughly,
42 // at least 30 feet away). 40 // at least 30 feet away).
43 PASSWORD_SIGN_IN_RSSI_TOO_LOW = 12, 41 PASSWORD_SIGN_IN_RSSI_TOO_LOW = 12,
44 // Password is used for sign-in because phone is not supported. 42 // Password is used for sign-in because phone is not supported.
45 PASSWORD_SIGN_IN_PHONE_UNSUPPORTED = 13, 43 PASSWORD_SIGN_IN_PHONE_UNSUPPORTED = 13,
46 // Password is used for sign-in because user types in passowrd. This is 44 // Password is used for sign-in because user types in password. This is
47 // unlikely to happen though. 45 // unlikely to happen though.
48 PASSWORD_SIGN_IN_WITH_AUTHENTICATED_PHONE = 14, 46 PASSWORD_SIGN_IN_WITH_AUTHENTICATED_PHONE = 14,
49 // Password is used for sign-in because phone is not right next to the 47 // Password is used for sign-in because phone is not right next to the
50 // Chromebook. 48 // Chromebook.
51 PASSWORD_SIGN_IN_TX_POWER_TOO_HIGH = 15, 49 PASSWORD_SIGN_IN_TX_POWER_TOO_HIGH = 15,
52 // Password is used for sign-in because Easy sign-in failed. 50 // Password is used for sign-in because Easy sign-in failed.
53 PASSWORD_SIGN_IN_LOGIN_FAILED = 16, 51 PASSWORD_SIGN_IN_LOGIN_FAILED = 16,
54 // Password is used for sign-in because pairing data is changed for a "new" 52 // Password is used for sign-in because pairing data is changed for a "new"
55 // Chromebook (where there was no previous pairing data).. 53 // Chromebook (where there was no previous pairing data)..
56 PASSWORD_SIGN_IN_PAIRING_ADDED = 17, 54 PASSWORD_SIGN_IN_PAIRING_ADDED = 17,
57 // Password is used for sign-in because there is no screenlock state handler. 55 // Password is used for sign-in because there is no screenlock state handler.
58 // Most likely because EasyUnlock is disabled, e.g. Bluetooth adapter not 56 // Most likely because EasyUnlock is disabled, e.g. Bluetooth adapter not
59 // ready. 57 // ready.
60 PASSWORD_SIGN_IN_NO_SCREENLOCK_STATE_HANDLER = 18, 58 PASSWORD_SIGN_IN_NO_SCREENLOCK_STATE_HANDLER = 18,
61 // Password is used for sign-in because the phone is (a) locked, and (b) not 59 // Password is used for sign-in because the phone is (a) locked, and (b) not
62 // right next to the Chromebook. 60 // right next to the Chromebook.
63 PASSWORD_SIGN_IN_PHONE_LOCKED_AND_TX_POWER_TOO_HIGH = 19, 61 PASSWORD_SIGN_IN_PHONE_LOCKED_AND_TX_POWER_TOO_HIGH = 19,
64 62
65 EASY_SIGN_IN_LOGIN_EVENT_COUNT // Must be the last. 63 EASY_SIGN_IN_LOGIN_EVENT_COUNT // Must be the last entry.
66 }; 64 };
67 65
68 void RecordEasyUnlockLoginEvent(EasyUnlockLoginEvent event); 66 void RecordEasyUnlockLoginEvent(EasyUnlockLoginEvent event);
69 67
70 } // namespace chromeos 68 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_METRICS_H_
71
72 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_METRICS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/easy_unlock/easy_unlock_metrics.cc ('k') | chrome/browser/signin/easy_unlock_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698