Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: chrome/browser/metrics/chromeos_metrics_provider.cc

Issue 685793002: Move all event related devices from ui/events/ to ui/events/devices/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@internal-touchscreens
Patch Set: fix ozone Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "base/prefs/pref_registry_simple.h" 7 #include "base/prefs/pref_registry_simple.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
14 #include "chromeos/system/statistics_provider.h" 14 #include "chromeos/system/statistics_provider.h"
15 #include "components/metrics/metrics_service.h" 15 #include "components/metrics/metrics_service.h"
16 #include "components/metrics/proto/chrome_user_metrics_extension.pb.h" 16 #include "components/metrics/proto/chrome_user_metrics_extension.pb.h"
17 #include "components/user_manager/user_manager.h" 17 #include "components/user_manager/user_manager.h"
18 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
19 #include "device/bluetooth/bluetooth_adapter.h" 19 #include "device/bluetooth/bluetooth_adapter.h"
20 #include "device/bluetooth/bluetooth_adapter_factory.h" 20 #include "device/bluetooth/bluetooth_adapter_factory.h"
21 #include "device/bluetooth/bluetooth_device.h" 21 #include "device/bluetooth/bluetooth_device.h"
22 #include "ui/events/event_utils.h" 22 #include "ui/events/event_utils.h"
23 #include "ui/gfx/screen.h" 23 #include "ui/gfx/screen.h"
24 24
25 #if defined(USE_X11) 25 #if defined(USE_X11)
26 #include "ui/events/x/touch_factory_x11.h" 26 #include "ui/events/devices/x11/touch_factory_x11.h"
27 #endif // defined(USE_X11) 27 #endif // defined(USE_X11)
28 28
29 using metrics::ChromeUserMetricsExtension; 29 using metrics::ChromeUserMetricsExtension;
30 using metrics::SampledProfile; 30 using metrics::SampledProfile;
31 using metrics::SystemProfileProto; 31 using metrics::SystemProfileProto;
32 typedef SystemProfileProto::Hardware::Bluetooth::PairedDevice PairedDevice; 32 typedef SystemProfileProto::Hardware::Bluetooth::PairedDevice PairedDevice;
33 33
34 namespace { 34 namespace {
35 35
36 PairedDevice::Type AsBluetoothDeviceType( 36 PairedDevice::Type AsBluetoothDeviceType(
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 } 280 }
281 281
282 system_profile_proto->set_multi_profile_user_count(user_count); 282 system_profile_proto->set_multi_profile_user_count(user_count);
283 } 283 }
284 } 284 }
285 285
286 void ChromeOSMetricsProvider::SetBluetoothAdapter( 286 void ChromeOSMetricsProvider::SetBluetoothAdapter(
287 scoped_refptr<device::BluetoothAdapter> adapter) { 287 scoped_refptr<device::BluetoothAdapter> adapter) {
288 adapter_ = adapter; 288 adapter_ = adapter;
289 } 289 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698