| 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/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 Loading... |
| 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 |
| OLD | NEW |