OLD | NEW |
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 "components/policy/core/browser/browser_policy_connector.h" | 5 #include "components/policy/core/browser/browser_policy_connector.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/metrics/histogram_macros.h" | 15 #include "base/metrics/histogram_macros.h" |
16 #include "base/metrics/sparse_histogram.h" | 16 #include "base/metrics/sparse_histogram.h" |
17 #include "base/prefs/pref_registry_simple.h" | |
18 #include "base/strings/string16.h" | 17 #include "base/strings/string16.h" |
19 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
20 #include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h" | 19 #include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h" |
21 #include "components/policy/core/common/cloud/device_management_service.h" | 20 #include "components/policy/core/common/cloud/device_management_service.h" |
22 #include "components/policy/core/common/configuration_policy_provider.h" | 21 #include "components/policy/core/common/configuration_policy_provider.h" |
23 #include "components/policy/core/common/policy_namespace.h" | 22 #include "components/policy/core/common/policy_namespace.h" |
24 #include "components/policy/core/common/policy_pref_names.h" | 23 #include "components/policy/core/common/policy_pref_names.h" |
25 #include "components/policy/core/common/policy_statistics_collector.h" | 24 #include "components/policy/core/common/policy_statistics_collector.h" |
26 #include "components/policy/core/common/policy_switches.h" | 25 #include "components/policy/core/common/policy_switches.h" |
| 26 #include "components/prefs/pref_registry_simple.h" |
27 #include "google_apis/gaia/gaia_auth_util.h" | 27 #include "google_apis/gaia/gaia_auth_util.h" |
28 #include "policy/policy_constants.h" | 28 #include "policy/policy_constants.h" |
29 #include "third_party/icu/source/i18n/unicode/regex.h" | 29 #include "third_party/icu/source/i18n/unicode/regex.h" |
30 | 30 |
31 namespace policy { | 31 namespace policy { |
32 | 32 |
33 namespace { | 33 namespace { |
34 | 34 |
35 // The URL for the device management server. | 35 // The URL for the device management server. |
36 const char kDefaultDeviceManagementServerUrl[] = | 36 const char kDefaultDeviceManagementServerUrl[] = |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 157 |
158 // static | 158 // static |
159 void BrowserPolicyConnector::RegisterPrefs(PrefRegistrySimple* registry) { | 159 void BrowserPolicyConnector::RegisterPrefs(PrefRegistrySimple* registry) { |
160 registry->RegisterIntegerPref( | 160 registry->RegisterIntegerPref( |
161 policy_prefs::kUserPolicyRefreshRate, | 161 policy_prefs::kUserPolicyRefreshRate, |
162 CloudPolicyRefreshScheduler::kDefaultRefreshDelayMs); | 162 CloudPolicyRefreshScheduler::kDefaultRefreshDelayMs); |
163 } | 163 } |
164 | 164 |
165 | 165 |
166 } // namespace policy | 166 } // namespace policy |
OLD | NEW |