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

Side by Side Diff: chrome/browser/policy/policy_service_impl.cc

Issue 78763002: Move PolicyMap and its dependencies to components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export nested struct Created 7 years 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 | Annotate | Revision Log
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 "chrome/browser/policy/policy_service_impl.h" 5 #include "chrome/browser/policy/policy_service_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/stl_util.h" 11 #include "base/stl_util.h"
12 #include "chrome/browser/policy/policy_bundle.h" 12 #include "chrome/browser/policy/policy_bundle.h"
13 #include "components/policy/core/common/policy_map.h"
13 14
14 namespace policy { 15 namespace policy {
15 16
16 typedef PolicyServiceImpl::Providers::const_iterator Iterator; 17 typedef PolicyServiceImpl::Providers::const_iterator Iterator;
17 18
18 PolicyServiceImpl::PolicyServiceImpl( 19 PolicyServiceImpl::PolicyServiceImpl(
19 const Providers& providers, 20 const Providers& providers,
20 const PreprocessCallback& preprocess_callback) 21 const PreprocessCallback& preprocess_callback)
21 : preprocess_callback_(preprocess_callback), 22 : preprocess_callback_(preprocess_callback),
22 update_task_ptr_factory_(this) { 23 update_task_ptr_factory_(this) {
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 if (refresh_pending_.empty() && !refresh_callbacks_.empty()) { 213 if (refresh_pending_.empty() && !refresh_callbacks_.empty()) {
213 std::vector<base::Closure> callbacks; 214 std::vector<base::Closure> callbacks;
214 callbacks.swap(refresh_callbacks_); 215 callbacks.swap(refresh_callbacks_);
215 std::vector<base::Closure>::iterator it; 216 std::vector<base::Closure>::iterator it;
216 for (it = callbacks.begin(); it != callbacks.end(); ++it) 217 for (it = callbacks.begin(); it != callbacks.end(); ++it)
217 it->Run(); 218 it->Run();
218 } 219 }
219 } 220 }
220 221
221 } // namespace policy 222 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698