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/policy_service_impl.h" | 5 #include "components/policy/core/common/policy_service_impl.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/macros.h" |
11 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
12 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
13 #include "base/thread_task_runner_handle.h" | 16 #include "base/thread_task_runner_handle.h" |
14 #include "base/values.h" | 17 #include "base/values.h" |
15 #include "components/policy/core/common/policy_bundle.h" | 18 #include "components/policy/core/common/policy_bundle.h" |
16 #include "components/policy/core/common/policy_map.h" | 19 #include "components/policy/core/common/policy_map.h" |
17 #include "components/policy/core/common/policy_types.h" | 20 #include "components/policy/core/common/policy_types.h" |
18 #include "policy/policy_constants.h" | 21 #include "policy/policy_constants.h" |
19 | 22 |
20 namespace policy { | 23 namespace policy { |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 if (refresh_pending_.empty() && !refresh_callbacks_.empty()) { | 281 if (refresh_pending_.empty() && !refresh_callbacks_.empty()) { |
279 std::vector<base::Closure> callbacks; | 282 std::vector<base::Closure> callbacks; |
280 callbacks.swap(refresh_callbacks_); | 283 callbacks.swap(refresh_callbacks_); |
281 std::vector<base::Closure>::iterator it; | 284 std::vector<base::Closure>::iterator it; |
282 for (it = callbacks.begin(); it != callbacks.end(); ++it) | 285 for (it = callbacks.begin(); it != callbacks.end(); ++it) |
283 it->Run(); | 286 it->Run(); |
284 } | 287 } |
285 } | 288 } |
286 | 289 |
287 } // namespace policy | 290 } // namespace policy |
OLD | NEW |