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

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

Issue 9111022: Removed ConfigurationPolicyType and extended PolicyMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 11 months 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 "chrome/browser/policy/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"
(...skipping 14 matching lines...) Expand all
25 namespace policy { 25 namespace policy {
26 26
27 namespace { 27 namespace {
28 28
29 // Policies are loaded early on startup, before PolicyErrorMaps are ready to 29 // Policies are loaded early on startup, before PolicyErrorMaps are ready to
30 // be retrieved. This function is posted to UI to log any errors found on 30 // be retrieved. This function is posted to UI to log any errors found on
31 // Refresh below. 31 // Refresh below.
32 void LogErrors(PolicyErrorMap* errors) { 32 void LogErrors(PolicyErrorMap* errors) {
33 PolicyErrorMap::const_iterator iter; 33 PolicyErrorMap::const_iterator iter;
34 for (iter = errors->begin(); iter != errors->end(); ++iter) { 34 for (iter = errors->begin(); iter != errors->end(); ++iter) {
35 string16 policy = ASCIIToUTF16(GetPolicyName(iter->first)); 35 string16 policy = ASCIIToUTF16(iter->first);
36 DLOG(WARNING) << "Policy " << policy << ": " << iter->second; 36 DLOG(WARNING) << "Policy " << policy << ": " << iter->second;
37 } 37 }
38 } 38 }
39 39
40 } // namespace 40 } // namespace
41 41
42 ConfigurationPolicyPrefStore::ConfigurationPolicyPrefStore( 42 ConfigurationPolicyPrefStore::ConfigurationPolicyPrefStore(
43 ConfigurationPolicyProvider* provider) 43 ConfigurationPolicyProvider* provider)
44 : provider_(provider), 44 : provider_(provider),
45 initialization_complete_(false) { 45 initialization_complete_(false) {
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // issue during startup. 163 // issue during startup.
164 BrowserThread::PostTask(BrowserThread::UI, 164 BrowserThread::PostTask(BrowserThread::UI,
165 FROM_HERE, 165 FROM_HERE,
166 base::Bind(&LogErrors, 166 base::Bind(&LogErrors,
167 base::Owned(errors.release()))); 167 base::Owned(errors.release())));
168 168
169 return prefs.release(); 169 return prefs.release();
170 } 170 }
171 171
172 } // namespace policy 172 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698