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

Side by Side Diff: components/policy/core/common/cloud/cloud_policy_manager.cc

Issue 1651203002: Update components for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 (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 "components/policy/core/common/cloud/cloud_policy_manager.h" 5 #include "components/policy/core/common/cloud/cloud_policy_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/prefs/pref_service.h"
15 #include "build/build_config.h" 14 #include "build/build_config.h"
16 #include "components/policy/core/common/cloud/cloud_policy_service.h" 15 #include "components/policy/core/common/cloud/cloud_policy_service.h"
17 #include "components/policy/core/common/policy_bundle.h" 16 #include "components/policy/core/common/policy_bundle.h"
18 #include "components/policy/core/common/policy_map.h" 17 #include "components/policy/core/common/policy_map.h"
19 #include "components/policy/core/common/policy_switches.h" 18 #include "components/policy/core/common/policy_switches.h"
19 #include "components/prefs/pref_service.h"
20 #include "net/url_request/url_request_context_getter.h" 20 #include "net/url_request/url_request_context_getter.h"
21 21
22 #if !defined(OS_ANDROID) && !defined(OS_IOS) 22 #if !defined(OS_ANDROID) && !defined(OS_IOS)
23 #include "components/policy/core/common/cloud/resource_cache.h" 23 #include "components/policy/core/common/cloud/resource_cache.h"
24 #endif 24 #endif
25 25
26 namespace policy { 26 namespace policy {
27 27
28 CloudPolicyManager::CloudPolicyManager( 28 CloudPolicyManager::CloudPolicyManager(
29 const std::string& policy_type, 29 const std::string& policy_type,
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 } 147 }
148 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) 148 #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
149 } 149 }
150 150
151 void CloudPolicyManager::OnRefreshComplete(bool success) { 151 void CloudPolicyManager::OnRefreshComplete(bool success) {
152 waiting_for_policy_refresh_ = false; 152 waiting_for_policy_refresh_ = false;
153 CheckAndPublishPolicy(); 153 CheckAndPublishPolicy();
154 } 154 }
155 155
156 } // namespace policy 156 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698