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