OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/metrics/chromeos_metrics_provider.h" | 5 #include "chrome/browser/metrics/chromeos_metrics_provider.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/prefs/pref_registry_simple.h" | |
10 #include "base/prefs/pref_service.h" | |
11 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
12 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
13 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
15 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 13 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
16 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
17 #include "chromeos/system/statistics_provider.h" | 15 #include "chromeos/system/statistics_provider.h" |
18 #include "components/metrics/metrics_service.h" | 16 #include "components/metrics/metrics_service.h" |
19 #include "components/metrics/proto/chrome_user_metrics_extension.pb.h" | 17 #include "components/metrics/proto/chrome_user_metrics_extension.pb.h" |
| 18 #include "components/prefs/pref_registry_simple.h" |
| 19 #include "components/prefs/pref_service.h" |
20 #include "components/user_manager/user_manager.h" | 20 #include "components/user_manager/user_manager.h" |
21 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
22 #include "device/bluetooth/bluetooth_adapter.h" | 22 #include "device/bluetooth/bluetooth_adapter.h" |
23 #include "device/bluetooth/bluetooth_adapter_factory.h" | 23 #include "device/bluetooth/bluetooth_adapter_factory.h" |
24 #include "device/bluetooth/bluetooth_device.h" | 24 #include "device/bluetooth/bluetooth_device.h" |
25 #include "ui/events/event_utils.h" | 25 #include "ui/events/event_utils.h" |
26 #include "ui/gfx/screen.h" | 26 #include "ui/gfx/screen.h" |
27 | 27 |
28 #if defined(USE_X11) | 28 #if defined(USE_X11) |
29 #include "ui/events/devices/x11/touch_factory_x11.h" | 29 #include "ui/events/devices/x11/touch_factory_x11.h" |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 | 299 |
300 void ChromeOSMetricsProvider::SetBluetoothAdapter( | 300 void ChromeOSMetricsProvider::SetBluetoothAdapter( |
301 scoped_refptr<device::BluetoothAdapter> adapter) { | 301 scoped_refptr<device::BluetoothAdapter> adapter) { |
302 adapter_ = adapter; | 302 adapter_ = adapter; |
303 } | 303 } |
304 | 304 |
305 void ChromeOSMetricsProvider::RecordEnrollmentStatus() { | 305 void ChromeOSMetricsProvider::RecordEnrollmentStatus() { |
306 UMA_HISTOGRAM_ENUMERATION( | 306 UMA_HISTOGRAM_ENUMERATION( |
307 "UMA.EnrollmentStatus", GetEnrollmentStatus(), ENROLLMENT_STATUS_MAX); | 307 "UMA.EnrollmentStatus", GetEnrollmentStatus(), ENROLLMENT_STATUS_MAX); |
308 } | 308 } |
OLD | NEW |