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

Side by Side Diff: chrome/common/password_generation_util.h

Issue 10787023: Adding UMA stats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Separate renderer histogram and browser histogram. Created 8 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_PASSWORD_GENERATION_UTIL_H_
6 #define CHROME_COMMON_PASSWORD_GENERATION_UTIL_H_
7
8 namespace password_generation {
9
10 // Enumerates various events related to the password generation process.
11 enum PasswordGenerationEvent {
12 // Account creation form is detected.
13 SIGN_UP_DETECTED,
14
15 // Password generation icon is shown inside the first password field.
16 ICON_SHOWN,
17
18 // Password generation bubble is shown after user clicks on the icon.
19 BUBBLE_SHOWN,
20
21 // Number of enum entries, used for UMA histogram reporting macros.
22 EVENT_ENUM_COUNT,
23 };
24
25 // Wrapper to store the user interactions with the password generation bubble.
26 struct PasswordGenerationActions {
27 // Whether the user has clicked on the learn more link.
28 bool learn_more_visited;
29
30 // Whether the user has accepted the generated password.
31 bool password_accepted;
32
33 // Whether the user has manually edited password entry.
34 bool password_edited;
35
36 // Whether the user has clicked on the regenerate button.
37 bool password_regenerated;
38
39 PasswordGenerationActions();
40 ~PasswordGenerationActions();
41 };
42
43 void LogUserActions(PasswordGenerationActions actions);
44
45 void LogPasswordGenerationEvent(PasswordGenerationEvent event);
46
47 } // namespace password_generation
48
49 #endif // CHROME_COMMON_PASSWORD_GENERATION_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698