OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "chrome/browser/policy/cloud/component_cloud_policy_service.h" | 5 #include "chrome/browser/policy/cloud/component_cloud_policy_service.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/location.h" | 9 #include "base/location.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/message_loop_proxy.h" | 11 #include "base/message_loop_proxy.h" |
12 #include "base/pickle.h" | 12 #include "base/pickle.h" |
| 13 #include "base/sequenced_task_runner.h" |
13 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
14 #include "base/task/sequenced_task_runner.h" | |
15 #include "chrome/browser/policy/cloud/component_cloud_policy_store.h" | 15 #include "chrome/browser/policy/cloud/component_cloud_policy_store.h" |
16 #include "chrome/browser/policy/cloud/component_cloud_policy_updater.h" | 16 #include "chrome/browser/policy/cloud/component_cloud_policy_updater.h" |
17 #include "chrome/browser/policy/cloud/resource_cache.h" | 17 #include "chrome/browser/policy/cloud/resource_cache.h" |
18 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" | 18 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" |
19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
20 #include "net/url_request/url_request_context_getter.h" | 20 #include "net/url_request/url_request_context_getter.h" |
21 | 21 |
22 namespace em = enterprise_management; | 22 namespace em = enterprise_management; |
23 | 23 |
24 namespace policy { | 24 namespace policy { |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 PolicyDomain domain, | 437 PolicyDomain domain, |
438 const StringSet& set) { | 438 const StringSet& set) { |
439 std::string policy_type; | 439 std::string policy_type; |
440 if (ComponentCloudPolicyStore::GetPolicyType(domain, &policy_type)) { | 440 if (ComponentCloudPolicyStore::GetPolicyType(domain, &policy_type)) { |
441 for (StringSet::const_iterator it = set.begin(); it != set.end(); ++it) | 441 for (StringSet::const_iterator it = set.begin(); it != set.end(); ++it) |
442 client_->RemoveNamespaceToFetch(PolicyNamespaceKey(policy_type, *it)); | 442 client_->RemoveNamespaceToFetch(PolicyNamespaceKey(policy_type, *it)); |
443 } | 443 } |
444 } | 444 } |
445 | 445 |
446 } // namespace policy | 446 } // namespace policy |
OLD | NEW |