| 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/policy/device_status_collector.h" | 5 #include "chrome/browser/chromeos/policy/device_status_collector.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 #include "chromeos/dbus/dbus_thread_manager.h" | 41 #include "chromeos/dbus/dbus_thread_manager.h" |
| 42 #include "chromeos/dbus/update_engine_client.h" | 42 #include "chromeos/dbus/update_engine_client.h" |
| 43 #include "chromeos/disks/disk_mount_manager.h" | 43 #include "chromeos/disks/disk_mount_manager.h" |
| 44 #include "chromeos/network/device_state.h" | 44 #include "chromeos/network/device_state.h" |
| 45 #include "chromeos/network/network_handler.h" | 45 #include "chromeos/network/network_handler.h" |
| 46 #include "chromeos/network/network_state.h" | 46 #include "chromeos/network/network_state.h" |
| 47 #include "chromeos/network/network_state_handler.h" | 47 #include "chromeos/network/network_state_handler.h" |
| 48 #include "chromeos/settings/cros_settings_names.h" | 48 #include "chromeos/settings/cros_settings_names.h" |
| 49 #include "chromeos/system/statistics_provider.h" | 49 #include "chromeos/system/statistics_provider.h" |
| 50 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 50 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 51 #include "components/policy/proto/device_management_backend.pb.h" |
| 51 #include "components/prefs/pref_registry_simple.h" | 52 #include "components/prefs/pref_registry_simple.h" |
| 52 #include "components/prefs/pref_service.h" | 53 #include "components/prefs/pref_service.h" |
| 53 #include "components/prefs/scoped_user_pref_update.h" | 54 #include "components/prefs/scoped_user_pref_update.h" |
| 54 #include "components/user_manager/user.h" | 55 #include "components/user_manager/user.h" |
| 55 #include "components/user_manager/user_manager.h" | 56 #include "components/user_manager/user_manager.h" |
| 56 #include "components/user_manager/user_type.h" | 57 #include "components/user_manager/user_type.h" |
| 57 #include "components/version_info/version_info.h" | 58 #include "components/version_info/version_info.h" |
| 58 #include "extensions/browser/extension_registry.h" | 59 #include "extensions/browser/extension_registry.h" |
| 59 #include "extensions/common/extension.h" | 60 #include "extensions/common/extension.h" |
| 60 #include "policy/proto/device_management_backend.pb.h" | |
| 61 #include "storage/browser/fileapi/external_mount_points.h" | 61 #include "storage/browser/fileapi/external_mount_points.h" |
| 62 #include "third_party/cros_system_api/dbus/service_constants.h" | 62 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 63 | 63 |
| 64 using base::Time; | 64 using base::Time; |
| 65 using base::TimeDelta; | 65 using base::TimeDelta; |
| 66 | 66 |
| 67 namespace em = enterprise_management; | 67 namespace em = enterprise_management; |
| 68 | 68 |
| 69 namespace { | 69 namespace { |
| 70 // How many seconds of inactivity triggers the idle state. | 70 // How many seconds of inactivity triggers the idle state. |
| (...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1201 ScheduleGeolocationUpdateRequest(); | 1201 ScheduleGeolocationUpdateRequest(); |
| 1202 } | 1202 } |
| 1203 | 1203 |
| 1204 void DeviceStatusCollector::ReceiveVolumeInfo( | 1204 void DeviceStatusCollector::ReceiveVolumeInfo( |
| 1205 const std::vector<em::VolumeInfo>& info) { | 1205 const std::vector<em::VolumeInfo>& info) { |
| 1206 if (report_hardware_status_) | 1206 if (report_hardware_status_) |
| 1207 volume_info_ = info; | 1207 volume_info_ = info; |
| 1208 } | 1208 } |
| 1209 | 1209 |
| 1210 } // namespace policy | 1210 } // namespace policy |
| OLD | NEW |