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

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

Issue 11243002: Move the bits of Prefs where production code has only trivially easy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, fix gypi problem Created 8 years, 2 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"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/prefs/pref_value_map.h"
12 #include "base/string16.h" 13 #include "base/string16.h"
13 #include "base/utf_string_conversions.h" 14 #include "base/utf_string_conversions.h"
14 #include "chrome/browser/browser_process.h" 15 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/policy/browser_policy_connector.h" 16 #include "chrome/browser/policy/browser_policy_connector.h"
16 #include "chrome/browser/policy/configuration_policy_handler_list.h" 17 #include "chrome/browser/policy/configuration_policy_handler_list.h"
17 #include "chrome/browser/policy/policy_error_map.h" 18 #include "chrome/browser/policy/policy_error_map.h"
18 #include "chrome/browser/prefs/pref_value_map.h"
19 #include "content/public/browser/browser_thread.h" 19 #include "content/public/browser/browser_thread.h"
20 #include "policy/policy_constants.h" 20 #include "policy/policy_constants.h"
21 21
22 using content::BrowserThread; 22 using content::BrowserThread;
23 23
24 namespace policy { 24 namespace policy {
25 25
26 namespace { 26 namespace {
27 27
28 // Policies are loaded early on startup, before PolicyErrorMaps are ready to 28 // Policies are loaded early on startup, before PolicyErrorMaps are ready to
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // issue during startup. 146 // issue during startup.
147 BrowserThread::PostTask(BrowserThread::UI, 147 BrowserThread::PostTask(BrowserThread::UI,
148 FROM_HERE, 148 FROM_HERE,
149 base::Bind(&LogErrors, 149 base::Bind(&LogErrors,
150 base::Owned(errors.release()))); 150 base::Owned(errors.release())));
151 151
152 return prefs.release(); 152 return prefs.release();
153 } 153 }
154 154
155 } // namespace policy 155 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698