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

Side by Side Diff: chrome/browser/chromeos/login/easy_unlock/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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/easy_unlock/easy_unlock_metrics.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_METRICS_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_METRICS_H_
7
8 namespace chromeos {
9
10 // Tracking login events for Easy unlock metrics.
11 // This enum is used to define the buckets for an enumerated UMA histogram.
12 // Hence,
13 // (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.
15 enum EasyUnlockLoginEvent {
16 // User is successfully authenticated using Easy Sign-in.
17 EASY_SIGN_IN_SUCCESS = 0,
18 // Easy sign-in failed to authenticate the user.
19 EASY_SIGN_IN_FAILURE = 1,
20
21 // Password is used for sign-in because there is no pairing data.
22 PASSWORD_SIGN_IN_NO_PAIRING = 2,
23 // Password is used for sign-in because pairing data is changed.
24 PASSWORD_SIGN_IN_PAIRING_CHANGED = 3,
25 // Password is used for sign-in because of user hardlock.
26 PASSWORD_SIGN_IN_USER_HARDLOCK = 4,
27 // Password is used for sign-in because Easy unlock service is not active.
28 PASSWORD_SIGN_IN_SERVICE_NOT_ACTIVE = 5,
29 // Password is used for sign-in because Bluetooth is not on.
30 PASSWORD_SIGN_IN_NO_BLUETOOTH = 6,
31 // Password is used for sign-in because Easy unlock is connecting.
32 PASSWORD_SIGN_IN_BLUETOOTH_CONNECTING = 7,
33 // Password is used for sign-in because no eligible phones found.
34 PASSWORD_SIGN_IN_NO_PHONE = 8,
35 // Password is used for sign-in because phone could not be authenticated.
36 PASSWORD_SIGN_IN_PHONE_NOT_AUTHENTICATED = 9,
37 // Password is used for sign-in because phone is locked.
38 PASSWORD_SIGN_IN_PHONE_LOCKED = 10,
39 // Password is used for sign-in because phone does not have lock screen.
40 PASSWORD_SIGN_IN_PHONE_NOT_LOCKABLE = 11,
41 // Password is used for sign-in because phone is not close enough (roughly,
42 // at least 30 feet away).
43 PASSWORD_SIGN_IN_RSSI_TOO_LOW = 12,
44 // Password is used for sign-in because phone is not supported.
45 PASSWORD_SIGN_IN_PHONE_UNSUPPORTED = 13,
46 // Password is used for sign-in because user types in passowrd. This is
47 // unlikely to happen though.
48 PASSWORD_SIGN_IN_WITH_AUTHENTICATED_PHONE = 14,
49 // Password is used for sign-in because phone is not right next to the
50 // Chromebook.
51 PASSWORD_SIGN_IN_TX_POWER_TOO_HIGH = 15,
52 // Password is used for sign-in because Easy sign-in failed.
53 PASSWORD_SIGN_IN_LOGIN_FAILED = 16,
54 // Password is used for sign-in because pairing data is changed for a "new"
55 // Chromebook (where there was no previous pairing data)..
56 PASSWORD_SIGN_IN_PAIRING_ADDED = 17,
57 // 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
59 // ready.
60 PASSWORD_SIGN_IN_NO_SCREENLOCK_STATE_HANDLER = 18,
61 // Password is used for sign-in because the phone is (a) locked, and (b) not
62 // right next to the Chromebook.
63 PASSWORD_SIGN_IN_PHONE_LOCKED_AND_TX_POWER_TOO_HIGH = 19,
64
65 EASY_SIGN_IN_LOGIN_EVENT_COUNT // Must be the last.
66 };
67
68 void RecordEasyUnlockLoginEvent(EasyUnlockLoginEvent event);
69
70 } // namespace chromeos
71
72 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_METRICS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/easy_unlock/easy_unlock_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698