OLD | NEW |
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 #include "chrome/browser/policy/auto_enrollment_client.h" | 5 #include "chrome/browser/chromeos/policy/auto_enrollment_client.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/guid.h" | 9 #include "base/guid.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/message_loop_proxy.h" | 12 #include "base/message_loop_proxy.h" |
13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
14 #include "base/string_number_conversions.h" | 14 #include "base/string_number_conversions.h" |
15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
| 16 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" |
16 #include "chrome/browser/policy/browser_policy_connector.h" | 17 #include "chrome/browser/policy/browser_policy_connector.h" |
17 #include "chrome/browser/policy/device_cloud_policy_manager_chromeos.h" | 18 #include "chrome/browser/policy/cloud/device_management_service.h" |
18 #include "chrome/browser/policy/device_management_service.h" | |
19 #include "chrome/browser/prefs/pref_service.h" | 19 #include "chrome/browser/prefs/pref_service.h" |
20 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" |
21 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
22 #include "crypto/sha2.h" | 22 #include "crypto/sha2.h" |
23 | 23 |
24 namespace em = enterprise_management; | 24 namespace em = enterprise_management; |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 // The modulus value is sent in an int64 field in the protobuf, whose maximum | 28 // The modulus value is sent in an int64 field in the protobuf, whose maximum |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 // This samples |kZero| when there was no need for extra time, so that we can | 327 // This samples |kZero| when there was no need for extra time, so that we can |
328 // measure the ratio of users that succeeded without needing a delay to the | 328 // measure the ratio of users that succeeded without needing a delay to the |
329 // total users going through OOBE. | 329 // total users going through OOBE. |
330 UMA_HISTOGRAM_CUSTOM_TIMES(kExtraTime, delta, kMin, kMax, kBuckets); | 330 UMA_HISTOGRAM_CUSTOM_TIMES(kExtraTime, delta, kMin, kMax, kBuckets); |
331 | 331 |
332 if (!completion_callback_.is_null()) | 332 if (!completion_callback_.is_null()) |
333 completion_callback_.Run(); | 333 completion_callback_.Run(); |
334 } | 334 } |
335 | 335 |
336 } // namespace policy | 336 } // namespace policy |
OLD | NEW |