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/chromeos/settings/device_settings_provider.h" | 5 #include "chrome/browser/chromeos/settings/device_settings_provider.h" |
6 | 6 |
7 #include <memory.h> | 7 #include <memory.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "chrome/browser/chromeos/policy/enterprise_install_attributes.h" | 23 #include "chrome/browser/chromeos/policy/enterprise_install_attributes.h" |
24 #include "chrome/browser/chromeos/settings/cros_settings.h" | 24 #include "chrome/browser/chromeos/settings/cros_settings.h" |
25 #include "chrome/browser/chromeos/settings/device_settings_cache.h" | 25 #include "chrome/browser/chromeos/settings/device_settings_cache.h" |
26 #include "chrome/browser/metrics/metrics_reporting_state.h" | 26 #include "chrome/browser/metrics/metrics_reporting_state.h" |
27 #include "chrome/installer/util/google_update_settings.h" | 27 #include "chrome/installer/util/google_update_settings.h" |
28 #include "chromeos/chromeos_switches.h" | 28 #include "chromeos/chromeos_switches.h" |
29 #include "chromeos/dbus/cryptohome_client.h" | 29 #include "chromeos/dbus/cryptohome_client.h" |
30 #include "chromeos/dbus/dbus_thread_manager.h" | 30 #include "chromeos/dbus/dbus_thread_manager.h" |
31 #include "chromeos/settings/cros_settings_names.h" | 31 #include "chromeos/settings/cros_settings_names.h" |
32 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 32 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 33 #include "components/policy/proto/device_management_backend.pb.h" |
33 #include "components/prefs/pref_service.h" | 34 #include "components/prefs/pref_service.h" |
34 #include "policy/proto/device_management_backend.pb.h" | |
35 | 35 |
36 using google::protobuf::RepeatedField; | 36 using google::protobuf::RepeatedField; |
37 using google::protobuf::RepeatedPtrField; | 37 using google::protobuf::RepeatedPtrField; |
38 | 38 |
39 namespace em = enterprise_management; | 39 namespace em = enterprise_management; |
40 | 40 |
41 namespace chromeos { | 41 namespace chromeos { |
42 | 42 |
43 namespace { | 43 namespace { |
44 | 44 |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 // Notify the observers we are done. | 841 // Notify the observers we are done. |
842 std::vector<base::Closure> callbacks; | 842 std::vector<base::Closure> callbacks; |
843 callbacks.swap(callbacks_); | 843 callbacks.swap(callbacks_); |
844 for (size_t i = 0; i < callbacks.size(); ++i) | 844 for (size_t i = 0; i < callbacks.size(); ++i) |
845 callbacks[i].Run(); | 845 callbacks[i].Run(); |
846 | 846 |
847 return settings_loaded; | 847 return settings_loaded; |
848 } | 848 } |
849 | 849 |
850 } // namespace chromeos | 850 } // namespace chromeos |
OLD | NEW |