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

Side by Side Diff: chrome/browser/chromeos/login/enrollment/enrollment_uma.cc

Issue 2373523003: Clean up sparse_histogram.h header (Closed)
Patch Set: Rebase update on Oct 18 Created 4 years, 2 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 | « chrome/browser/bad_message.cc ('k') | chrome/browser/download/download_danger_prompt.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chrome/browser/chromeos/login/enrollment/enrollment_uma.h" 5 #include "chrome/browser/chromeos/login/enrollment/enrollment_uma.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/sparse_histogram.h" 8 #include "base/metrics/histogram_macros.h"
9 9
10 namespace { 10 namespace {
11 11
12 const char * const kMetricEnrollment = "Enterprise.Enrollment"; 12 const char * const kMetricEnrollment = "Enterprise.Enrollment";
13 const char * const kMetricEnrollmentForced = "Enterprise.EnrollmentForced"; 13 const char * const kMetricEnrollmentForced = "Enterprise.EnrollmentForced";
14 const char * const kMetricEnrollmentRecovery = "Enterprise.EnrollmentRecovery"; 14 const char * const kMetricEnrollmentRecovery = "Enterprise.EnrollmentRecovery";
15 15
16 } // namespace 16 } // namespace
17 17
18 namespace chromeos { 18 namespace chromeos {
(...skipping 16 matching lines...) Expand all
35 case policy::EnrollmentConfig::MODE_RECOVERY: 35 case policy::EnrollmentConfig::MODE_RECOVERY:
36 UMA_HISTOGRAM_SPARSE_SLOWLY(kMetricEnrollmentRecovery, sample); 36 UMA_HISTOGRAM_SPARSE_SLOWLY(kMetricEnrollmentRecovery, sample);
37 break; 37 break;
38 case policy::EnrollmentConfig::MODE_NONE: 38 case policy::EnrollmentConfig::MODE_NONE:
39 NOTREACHED(); 39 NOTREACHED();
40 break; 40 break;
41 } 41 }
42 } 42 }
43 43
44 } // namespace chromeos 44 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/bad_message.cc ('k') | chrome/browser/download/download_danger_prompt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698