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

Side by Side Diff: components/policy/core/browser/configuration_policy_pref_store.cc

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes 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/configuration_policy_pref_store.h" 5 #include "components/policy/core/browser/configuration_policy_pref_store.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/prefs/pref_value_map.h" 13 #include "base/prefs/pref_value_map.h"
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
16 #include "chrome/browser/policy/configuration_policy_handler_list.h" 16 #include "components/policy/core/browser/configuration_policy_handler_list.h"
17 #include "components/policy/core/browser/policy_error_map.h" 17 #include "components/policy/core/browser/policy_error_map.h"
18 18
19 namespace policy { 19 namespace policy {
20 20
21 namespace { 21 namespace {
22 22
23 // Policies are loaded early on startup, before PolicyErrorMaps are ready to 23 // Policies are loaded early on startup, before PolicyErrorMaps are ready to
24 // be retrieved. This function is posted to UI to log any errors found on 24 // be retrieved. This function is posted to UI to log any errors found on
25 // Refresh below. 25 // Refresh below.
26 void LogErrors(PolicyErrorMap* errors) { 26 void LogErrors(PolicyErrorMap* errors) {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 // Retrieve and log the errors once the UI loop is ready. This is only an 125 // Retrieve and log the errors once the UI loop is ready. This is only an
126 // issue during startup. 126 // issue during startup.
127 base::MessageLoop::current()->PostTask( 127 base::MessageLoop::current()->PostTask(
128 FROM_HERE, base::Bind(&LogErrors, base::Owned(errors.release()))); 128 FROM_HERE, base::Bind(&LogErrors, base::Owned(errors.release())));
129 129
130 return prefs.release(); 130 return prefs.release();
131 } 131 }
132 132
133 } // namespace policy 133 } // namespace policy
OLDNEW
« no previous file with comments | « components/policy/core/browser/configuration_policy_pref_store.h ('k') | components/policy/core/common/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698