OLD | NEW |
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/prefs/pref_value_map.h" |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
16 #include "chrome/browser/policy/browser_policy_connector.h" | 16 #include "chrome/browser/policy/browser_policy_connector.h" |
17 #include "chrome/browser/policy/configuration_policy_handler_list.h" | 17 #include "chrome/browser/policy/configuration_policy_handler_list.h" |
18 #include "chrome/browser/policy/policy_error_map.h" | 18 #include "chrome/browser/policy/policy_error_map.h" |
| 19 #include "chrome/browser/policy/policy_namespace.h" |
19 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
20 #include "policy/policy_constants.h" | 21 #include "policy/policy_constants.h" |
21 | 22 |
22 using content::BrowserThread; | 23 using content::BrowserThread; |
23 | 24 |
24 namespace policy { | 25 namespace policy { |
25 | 26 |
26 namespace { | 27 namespace { |
27 | 28 |
28 // Policies are loaded early on startup, before PolicyErrorMaps are ready to | 29 // Policies are loaded early on startup, before PolicyErrorMaps are ready to |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // issue during startup. | 148 // issue during startup. |
148 BrowserThread::PostTask(BrowserThread::UI, | 149 BrowserThread::PostTask(BrowserThread::UI, |
149 FROM_HERE, | 150 FROM_HERE, |
150 base::Bind(&LogErrors, | 151 base::Bind(&LogErrors, |
151 base::Owned(errors.release()))); | 152 base::Owned(errors.release()))); |
152 | 153 |
153 return prefs.release(); | 154 return prefs.release(); |
154 } | 155 } |
155 | 156 |
156 } // namespace policy | 157 } // namespace policy |
OLD | NEW |