| 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 #include <sys/statvfs.h> | 9 #include <sys/statvfs.h> |
| 10 #include <cstdio> | 10 #include <cstdio> |
| 11 #include <limits> | 11 #include <limits> |
| 12 #include <sstream> | 12 #include <sstream> |
| 13 | 13 |
| 14 #include "base/bind.h" | 14 #include "base/bind.h" |
| 15 #include "base/bind_helpers.h" | 15 #include "base/bind_helpers.h" |
| 16 #include "base/files/file_enumerator.h" | 16 #include "base/files/file_enumerator.h" |
| 17 #include "base/files/file_util.h" | 17 #include "base/files/file_util.h" |
| 18 #include "base/format_macros.h" | 18 #include "base/format_macros.h" |
| 19 #include "base/location.h" | 19 #include "base/location.h" |
| 20 #include "base/logging.h" | 20 #include "base/logging.h" |
| 21 #include "base/macros.h" | 21 #include "base/macros.h" |
| 22 #include "base/memory/scoped_ptr.h" | 22 #include "base/memory/scoped_ptr.h" |
| 23 #include "base/posix/eintr_wrapper.h" | 23 #include "base/posix/eintr_wrapper.h" |
| 24 #include "base/prefs/pref_registry_simple.h" | |
| 25 #include "base/prefs/pref_service.h" | |
| 26 #include "base/prefs/scoped_user_pref_update.h" | |
| 27 #include "base/strings/string_number_conversions.h" | 24 #include "base/strings/string_number_conversions.h" |
| 28 #include "base/strings/string_util.h" | 25 #include "base/strings/string_util.h" |
| 29 #include "base/sys_info.h" | 26 #include "base/sys_info.h" |
| 30 #include "base/task_runner_util.h" | 27 #include "base/task_runner_util.h" |
| 31 #include "base/values.h" | 28 #include "base/values.h" |
| 32 #include "chrome/browser/browser_process.h" | 29 #include "chrome/browser/browser_process.h" |
| 33 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 30 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
| 34 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" | 31 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" |
| 35 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 32 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
| 36 #include "chrome/browser/chromeos/policy/device_local_account.h" | 33 #include "chrome/browser/chromeos/policy/device_local_account.h" |
| 37 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 34 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 38 #include "chrome/browser/chromeos/settings/cros_settings.h" | 35 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 39 #include "chrome/common/pref_names.h" | 36 #include "chrome/common/pref_names.h" |
| 40 #include "chromeos/disks/disk_mount_manager.h" | 37 #include "chromeos/disks/disk_mount_manager.h" |
| 41 #include "chromeos/network/device_state.h" | 38 #include "chromeos/network/device_state.h" |
| 42 #include "chromeos/network/network_handler.h" | 39 #include "chromeos/network/network_handler.h" |
| 43 #include "chromeos/network/network_state.h" | 40 #include "chromeos/network/network_state.h" |
| 44 #include "chromeos/network/network_state_handler.h" | 41 #include "chromeos/network/network_state_handler.h" |
| 45 #include "chromeos/settings/cros_settings_names.h" | 42 #include "chromeos/settings/cros_settings_names.h" |
| 46 #include "chromeos/system/statistics_provider.h" | 43 #include "chromeos/system/statistics_provider.h" |
| 47 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 44 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 45 #include "components/prefs/pref_registry_simple.h" |
| 46 #include "components/prefs/pref_service.h" |
| 47 #include "components/prefs/scoped_user_pref_update.h" |
| 48 #include "components/user_manager/user.h" | 48 #include "components/user_manager/user.h" |
| 49 #include "components/user_manager/user_manager.h" | 49 #include "components/user_manager/user_manager.h" |
| 50 #include "components/user_manager/user_type.h" | 50 #include "components/user_manager/user_type.h" |
| 51 #include "components/version_info/version_info.h" | 51 #include "components/version_info/version_info.h" |
| 52 #include "content/public/browser/browser_thread.h" | 52 #include "content/public/browser/browser_thread.h" |
| 53 #include "extensions/browser/extension_registry.h" | 53 #include "extensions/browser/extension_registry.h" |
| 54 #include "extensions/common/extension.h" | 54 #include "extensions/common/extension.h" |
| 55 #include "policy/proto/device_management_backend.pb.h" | 55 #include "policy/proto/device_management_backend.pb.h" |
| 56 #include "storage/browser/fileapi/external_mount_points.h" | 56 #include "storage/browser/fileapi/external_mount_points.h" |
| 57 #include "third_party/cros_system_api/dbus/service_constants.h" | 57 #include "third_party/cros_system_api/dbus/service_constants.h" |
| (...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 ScheduleGeolocationUpdateRequest(); | 1049 ScheduleGeolocationUpdateRequest(); |
| 1050 } | 1050 } |
| 1051 | 1051 |
| 1052 void DeviceStatusCollector::ReceiveVolumeInfo( | 1052 void DeviceStatusCollector::ReceiveVolumeInfo( |
| 1053 const std::vector<em::VolumeInfo>& info) { | 1053 const std::vector<em::VolumeInfo>& info) { |
| 1054 if (report_hardware_status_) | 1054 if (report_hardware_status_) |
| 1055 volume_info_ = info; | 1055 volume_info_ = info; |
| 1056 } | 1056 } |
| 1057 | 1057 |
| 1058 } // namespace policy | 1058 } // namespace policy |
| OLD | NEW |