| 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 "components/policy/core/common/cloud/cloud_policy_manager.h" | 5 #include "components/policy/core/common/cloud/cloud_policy_manager.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/prefs/pref_service.h" | 12 #include "base/prefs/pref_service.h" |
| 13 #include "build/build_config.h" |
| 13 #include "components/policy/core/common/cloud/cloud_policy_service.h" | 14 #include "components/policy/core/common/cloud/cloud_policy_service.h" |
| 14 #include "components/policy/core/common/policy_bundle.h" | 15 #include "components/policy/core/common/policy_bundle.h" |
| 15 #include "components/policy/core/common/policy_map.h" | 16 #include "components/policy/core/common/policy_map.h" |
| 16 #include "components/policy/core/common/policy_switches.h" | 17 #include "components/policy/core/common/policy_switches.h" |
| 17 #include "net/url_request/url_request_context_getter.h" | 18 #include "net/url_request/url_request_context_getter.h" |
| 18 | 19 |
| 19 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 20 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 20 #include "components/policy/core/common/cloud/resource_cache.h" | 21 #include "components/policy/core/common/cloud/resource_cache.h" |
| 21 #endif | 22 #endif |
| 22 | 23 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 } | 151 } |
| 151 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) | 152 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) |
| 152 } | 153 } |
| 153 | 154 |
| 154 void CloudPolicyManager::OnRefreshComplete(bool success) { | 155 void CloudPolicyManager::OnRefreshComplete(bool success) { |
| 155 waiting_for_policy_refresh_ = false; | 156 waiting_for_policy_refresh_ = false; |
| 156 CheckAndPublishPolicy(); | 157 CheckAndPublishPolicy(); |
| 157 } | 158 } |
| 158 | 159 |
| 159 } // namespace policy | 160 } // namespace policy |
| OLD | NEW |