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

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

Issue 78823004: Move PolicyBundle into components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase on master 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 "components/policy/core/common/policy_bundle.h"
13 #include "components/policy/core/common/policy_map.h" 13 #include "components/policy/core/common/policy_map.h"
14 14
15 namespace policy { 15 namespace policy {
16 16
17 typedef PolicyServiceImpl::Providers::const_iterator Iterator; 17 typedef PolicyServiceImpl::Providers::const_iterator Iterator;
18 18
19 PolicyServiceImpl::PolicyServiceImpl( 19 PolicyServiceImpl::PolicyServiceImpl(
20 const Providers& providers, 20 const Providers& providers,
21 const PreprocessCallback& preprocess_callback) 21 const PreprocessCallback& preprocess_callback)
22 : preprocess_callback_(preprocess_callback), 22 : preprocess_callback_(preprocess_callback),
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 if (refresh_pending_.empty() && !refresh_callbacks_.empty()) { 213 if (refresh_pending_.empty() && !refresh_callbacks_.empty()) {
214 std::vector<base::Closure> callbacks; 214 std::vector<base::Closure> callbacks;
215 callbacks.swap(refresh_callbacks_); 215 callbacks.swap(refresh_callbacks_);
216 std::vector<base::Closure>::iterator it; 216 std::vector<base::Closure>::iterator it;
217 for (it = callbacks.begin(); it != callbacks.end(); ++it) 217 for (it = callbacks.begin(); it != callbacks.end(); ++it)
218 it->Run(); 218 it->Run();
219 } 219 }
220 } 220 }
221 221
222 } // namespace policy 222 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698