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

Side by Side Diff: components/policy/core/browser/browser_policy_connector.cc

Issue 2273783002: Move policy generated files to components/policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed headers Created 4 years, 3 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
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 "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/strings/string16.h" 17 #include "base/strings/string16.h"
18 #include "base/strings/utf_string_conversions.h" 18 #include "base/strings/utf_string_conversions.h"
19 #include "base/threading/thread_task_runner_handle.h" 19 #include "base/threading/thread_task_runner_handle.h"
20 #include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h" 20 #include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h"
21 #include "components/policy/core/common/cloud/device_management_service.h" 21 #include "components/policy/core/common/cloud/device_management_service.h"
22 #include "components/policy/core/common/configuration_policy_provider.h" 22 #include "components/policy/core/common/configuration_policy_provider.h"
23 #include "components/policy/core/common/policy_namespace.h" 23 #include "components/policy/core/common/policy_namespace.h"
24 #include "components/policy/core/common/policy_pref_names.h" 24 #include "components/policy/core/common/policy_pref_names.h"
25 #include "components/policy/core/common/policy_statistics_collector.h" 25 #include "components/policy/core/common/policy_statistics_collector.h"
26 #include "components/policy/core/common/policy_switches.h" 26 #include "components/policy/core/common/policy_switches.h"
27 #include "components/policy/policy_constants.h"
27 #include "components/prefs/pref_registry_simple.h" 28 #include "components/prefs/pref_registry_simple.h"
28 #include "google_apis/gaia/gaia_auth_util.h" 29 #include "google_apis/gaia/gaia_auth_util.h"
29 #include "policy/policy_constants.h"
30 #include "third_party/icu/source/i18n/unicode/regex.h" 30 #include "third_party/icu/source/i18n/unicode/regex.h"
31 31
32 namespace policy { 32 namespace policy {
33 33
34 namespace { 34 namespace {
35 35
36 // The URL for the device management server. 36 // The URL for the device management server.
37 const char kDefaultDeviceManagementServerUrl[] = 37 const char kDefaultDeviceManagementServerUrl[] =
38 "https://m.google.com/devicemanagement/data/api"; 38 "https://m.google.com/devicemanagement/data/api";
39 39
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 // static 157 // static
158 void BrowserPolicyConnector::RegisterPrefs(PrefRegistrySimple* registry) { 158 void BrowserPolicyConnector::RegisterPrefs(PrefRegistrySimple* registry) {
159 registry->RegisterIntegerPref( 159 registry->RegisterIntegerPref(
160 policy_prefs::kUserPolicyRefreshRate, 160 policy_prefs::kUserPolicyRefreshRate,
161 CloudPolicyRefreshScheduler::kDefaultRefreshDelayMs); 161 CloudPolicyRefreshScheduler::kDefaultRefreshDelayMs);
162 } 162 }
163 163
164 164
165 } // namespace policy 165 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698