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

Side by Side Diff: chrome/browser/password_manager/password_manager_metrics_util.h

Issue 23140005: Added of new UMA signals in order to be able to discover early if the "save password" feature gets … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review 6 Created 7 years, 3 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
(Empty)
1 // Copyright 2013 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_PASSWORD_MANAGER_PASSWORD_MANAGER_METRICS_UTIL_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_METRICS_UTIL_H_
7
8 #include <string>
9
10 namespace base {
11 class TimeDelta;
12 }
13
14 namespace password_manager_metrics_util {
15
16 struct DomainBucketsPair {
17 char const* domain_name;
Ilya Sherman 2013/09/10 22:30:54 char const* char
vabr (Chromium) 2013/09/11 07:25:43 I suppose Ilya meant const char* ?
Ilya Sherman 2013/09/11 23:33:04 Whoops, good catch. I meant "const char* const".
18 int const bucket_ids[10];
Ilya Sherman 2013/09/10 22:30:54 Why does each domain have 10 bucket ids?
vabr (Chromium) 2013/09/11 07:25:43 int const -> const int
vabr (Chromium) 2013/09/11 07:25:43 It has to be a half of the total number of buckets
vabr (Chromium) 2013/09/11 07:25:43 Jordy -- instead of just writing "10", you should
jdomingos 2013/09/11 15:50:30 Done.
19 };
Ilya Sherman 2013/09/10 22:30:54 This doesn't seem to be used anywhere else in the
Ilya Sherman 2013/09/10 22:30:54 Please document this struct.
jdomingos 2013/09/11 15:50:30 Done.
jdomingos 2013/09/11 15:50:30 Done.
20
21 // Check whether the |url_host| is monitored or not. If yes, we return
22 // the name of the group which contains the domain name otherwise
23 // returns an empty string.
24 std::string IsDomainNameMonitored(const std::string& url_host);
Ilya Sherman 2013/09/10 22:30:54 This method name suggests that the method returns
jdomingos 2013/09/11 15:50:30 Done.
jdomingos 2013/09/11 15:50:30 Done.
25
26 // A version of the UMA_HISTOGRAM_ENUMERATION macro that allows the |name|
27 // to vary over the program's runtime.
28 void LogUMAHistogramEnumeration(const std::string& name,
29 int sample,
30 int boundary_value);
31
32 // A version of the UMA_HISTOGRAM_TIMES macro that allows the |name|
33 // to vary over the program's runtime.
34 void LogUMAHistogramTimes(const std::string& name,
35 const base::TimeDelta& duration);
36
37 // A version of the UMA_HISTOGRAM_COUNT macro that allows the |name|
Ilya Sherman 2013/09/10 22:30:54 nit: I think you mean UMA_HISTOGRAM_COUNTS. Pleas
jdomingos 2013/09/11 15:50:30 Done.
jdomingos 2013/09/11 15:50:30 Done.
38 // to vary over the program's runtime.
39 void LogUMAHistogramCount(const std::string& name, int sample);
40
41 } // namespace password_manager_metrics_util
42
43 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_METRICS_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698