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

Side by Side Diff: chrome/browser/policy/enterprise_metrics.h

Issue 10664017: Introduce a new error code from the DM server - 402 - missing licenses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New error message wording. 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
« no previous file with comments | « chrome/browser/policy/device_token_fetcher.cc ('k') | chrome/browser/policy/policy_notifier.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 (c) 2012 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_POLICY_ENTERPRISE_METRICS_H_ 5 #ifndef CHROME_BROWSER_POLICY_ENTERPRISE_METRICS_H_
6 #define CHROME_BROWSER_POLICY_ENTERPRISE_METRICS_H_ 6 #define CHROME_BROWSER_POLICY_ENTERPRISE_METRICS_H_
7 #pragma once 7 #pragma once
8 8
9 namespace policy { 9 namespace policy {
10 10
(...skipping 27 matching lines...) Expand all
38 38
39 // Successfully cached a token to disk. 39 // Successfully cached a token to disk.
40 kMetricTokenStoreSucceeded, 40 kMetricTokenStoreSucceeded,
41 // Caching a token to disk failed. 41 // Caching a token to disk failed.
42 kMetricTokenStoreFailed, 42 kMetricTokenStoreFailed,
43 43
44 // DM server reported that the device-id generated is not unique. 44 // DM server reported that the device-id generated is not unique.
45 kMetricTokenFetchDeviceIdConflict, 45 kMetricTokenFetchDeviceIdConflict,
46 // DM server reported that the serial number we try to register is invalid. 46 // DM server reported that the serial number we try to register is invalid.
47 kMetricTokenFetchInvalidSerialNumber, 47 kMetricTokenFetchInvalidSerialNumber,
48 // DM server reported that the licenses for the domain have expired or been
49 // exhausted.
50 kMetricMissingLicenses,
48 51
49 kMetricTokenSize // Must be the last. 52 kMetricTokenSize // Must be the last.
50 }; 53 };
51 54
52 // Events related to fetching, saving and loading user and device policies. 55 // Events related to fetching, saving and loading user and device policies.
53 enum MetricPolicy { 56 enum MetricPolicy {
54 // A cached policy was successfully loaded from disk. 57 // A cached policy was successfully loaded from disk.
55 kMetricPolicyLoadSucceeded, 58 kMetricPolicyLoadSucceeded,
56 // Reading a cached policy from disk failed. 59 // Reading a cached policy from disk failed.
57 kMetricPolicyLoadFailed, 60 kMetricPolicyLoadFailed,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 kMetricEnrollmentInvalidEnrollmentMode, 143 kMetricEnrollmentInvalidEnrollmentMode,
141 // Auto-enrollment is not supported for the mode supplied by the server. 144 // Auto-enrollment is not supported for the mode supplied by the server.
142 // This presently means trying to auto-enroll in kiosk mode. 145 // This presently means trying to auto-enroll in kiosk mode.
143 kMetricEnrollmentAutoEnrollmentNotSupported, 146 kMetricEnrollmentAutoEnrollmentNotSupported,
144 // The lockbox initialization has taken too long to complete and the 147 // The lockbox initialization has taken too long to complete and the
145 // enrollment has been canceled because of that. 148 // enrollment has been canceled because of that.
146 kMetricLockboxTimeoutError, 149 kMetricLockboxTimeoutError,
147 // The username used to re-enroll the device does not belong to the domain 150 // The username used to re-enroll the device does not belong to the domain
148 // that the device was initially enrolled to. 151 // that the device was initially enrolled to.
149 kMetricEnrollmentWrongUserError, 152 kMetricEnrollmentWrongUserError,
153 // DM server reported that the licenses for the domain has expired or been
154 // exhausted.
155 kMetricMissingSerialsError,
Mattias Nissler (ping if slow) 2012/06/27 12:12:10 Name still broken.
pastarmovj 2012/06/27 12:30:46 Arrrgh you know how many times did i typed serials
150 156
151 kMetricEnrollmentSize // Must be the last. 157 kMetricEnrollmentSize // Must be the last.
152 }; 158 };
153 159
154 // Names for the UMA counters. They are shared from here since the events 160 // Names for the UMA counters. They are shared from here since the events
155 // from the same enum above can be triggered in different files, and must use 161 // from the same enum above can be triggered in different files, and must use
156 // the same UMA histogram name. 162 // the same UMA histogram name.
157 extern const char* kMetricToken; 163 extern const char* kMetricToken;
158 extern const char* kMetricPolicy; 164 extern const char* kMetricPolicy;
159 extern const char* kMetricEnrollment; 165 extern const char* kMetricEnrollment;
160 166
161 } // namespace policy 167 } // namespace policy
162 168
163 #endif // CHROME_BROWSER_POLICY_ENTERPRISE_METRICS_H_ 169 #endif // CHROME_BROWSER_POLICY_ENTERPRISE_METRICS_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/device_token_fetcher.cc ('k') | chrome/browser/policy/policy_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698