Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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_INSTALLABLE_INSTALLABLE_METRICS_H_ | |
| 6 #define CHROME_BROWSER_INSTALLABLE_INSTALLABLE_METRICS_H_ | |
| 7 | |
| 8 class InstallableMetrics { | |
| 9 public: | |
| 10 // This enum backs a UMA histogram and must be treated as append-only. | |
| 11 enum InstallabilityCheckStatus { | |
|
Ilya Sherman
2017/03/31 17:03:15
Optional nit: You can now use "enum class" without
dominickn
2017/04/03 00:06:46
Done. zomg no more static casting!!!!!
| |
| 12 NOT_STARTED, | |
| 13 STOPPED_BEFORE_COMPLETION, | |
| 14 IN_PROGRESS_NON_PWA, | |
|
Ilya Sherman
2017/03/31 17:03:15
nit: "PWA" is not an obvious acronym, at least for
dominickn
2017/04/03 00:06:46
Done.
| |
| 15 IN_PROGRESS_PWA, | |
| 16 COMPLETE_NON_PWA, | |
| 17 COMPLETE_PWA, | |
| 18 MAX, | |
|
Ilya Sherman
2017/03/31 17:03:16
Optional nit: I would name this "COUNT" -- "MAX" i
dominickn
2017/04/03 00:06:46
Done.
| |
| 19 }; | |
| 20 | |
| 21 static void RecordMenuOpenHistogram(InstallabilityCheckStatus status); | |
| 22 static void RecordMenuItemAddToHomescreenHistogram( | |
| 23 InstallabilityCheckStatus status); | |
| 24 }; | |
| 25 | |
| 26 #endif // CHROME_BROWSER_INSTALLABLE_INSTALLABLE_METRICS_H_ | |
| OLD | NEW |