| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram_macros.h" |
| 13 #include "base/metrics/sparse_histogram.h" | 13 #include "base/metrics/sparse_histogram.h" |
| 14 #include "base/prefs/pref_registry_simple.h" | 14 #include "base/prefs/pref_registry_simple.h" |
| 15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 17 #include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h" | 17 #include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h" |
| 18 #include "components/policy/core/common/cloud/device_management_service.h" | 18 #include "components/policy/core/common/cloud/device_management_service.h" |
| 19 #include "components/policy/core/common/configuration_policy_provider.h" | 19 #include "components/policy/core/common/configuration_policy_provider.h" |
| 20 #include "components/policy/core/common/policy_namespace.h" | 20 #include "components/policy/core/common/policy_namespace.h" |
| 21 #include "components/policy/core/common/policy_pref_names.h" | 21 #include "components/policy/core/common/policy_pref_names.h" |
| 22 #include "components/policy/core/common/policy_service_impl.h" | 22 #include "components/policy/core/common/policy_service_impl.h" |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 } | 249 } |
| 250 | 250 |
| 251 void BrowserPolicyConnector::SetPlatformPolicyProvider( | 251 void BrowserPolicyConnector::SetPlatformPolicyProvider( |
| 252 scoped_ptr<ConfigurationPolicyProvider> provider) { | 252 scoped_ptr<ConfigurationPolicyProvider> provider) { |
| 253 CHECK(!platform_policy_provider_); | 253 CHECK(!platform_policy_provider_); |
| 254 platform_policy_provider_ = provider.get(); | 254 platform_policy_provider_ = provider.get(); |
| 255 AddPolicyProvider(provider.Pass()); | 255 AddPolicyProvider(provider.Pass()); |
| 256 } | 256 } |
| 257 | 257 |
| 258 } // namespace policy | 258 } // namespace policy |
| OLD | NEW |