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

Side by Side Diff: services/device/device_service.cc

Issue 2753753007: Introduce Identity Service and its initial usage (Closed)
Patch Set: Response to reviews Created 3 years, 9 months 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
« no previous file with comments | « components/signin/public/interfaces/account_id_traits.h ('k') | services/identity/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "services/device/device_service.h" 5 #include "services/device/device_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
11 #include "base/threading/thread_task_runner_handle.h" 11 #include "base/threading/thread_task_runner_handle.h"
12 #include "device/battery/battery_monitor.mojom.h" 12 #include "device/battery/battery_monitor.mojom.h"
13 #include "device/battery/battery_monitor_impl.h" 13 #include "device/battery/battery_monitor_impl.h"
14 #include "device/battery/battery_status_service.h" 14 #include "device/battery/battery_status_service.h"
15 #include "device/sensors/device_sensor_host.h" 15 #include "device/sensors/device_sensor_host.h"
16 #include "mojo/public/cpp/system/message_pipe.h" 16 #include "mojo/public/cpp/system/message_pipe.h"
17 #include "services/device/fingerprint/fingerprint.h" 17 #include "services/device/fingerprint/fingerprint.h"
18 #include "services/device/power_monitor/power_monitor_message_broadcaster.h" 18 #include "services/device/power_monitor/power_monitor_message_broadcaster.h"
19 #include "services/device/time_zone_monitor/time_zone_monitor.h" 19 #include "services/device/time_zone_monitor/time_zone_monitor.h"
20 #include "services/service_manager/public/cpp/connection.h" 20 #include "services/service_manager/public/cpp/connection.h"
21 #include "services/service_manager/public/cpp/interface_registry.h" 21 #include "services/service_manager/public/cpp/interface_registry.h"
22 #include "services/service_manager/public/cpp/service_info.h"
22 23
23 #if defined(OS_ANDROID) 24 #if defined(OS_ANDROID)
24 #include "base/android/context_utils.h" 25 #include "base/android/context_utils.h"
25 #include "base/android/jni_android.h" 26 #include "base/android/jni_android.h"
26 #include "jni/InterfaceRegistrar_jni.h" 27 #include "jni/InterfaceRegistrar_jni.h"
27 #include "services/device/android/register_jni.h" 28 #include "services/device/android/register_jni.h"
28 #include "services/device/screen_orientation/screen_orientation_listener_android .h" 29 #include "services/device/screen_orientation/screen_orientation_listener_android .h"
29 #else 30 #else
30 #include "device/vibration/vibration_manager_impl.h" 31 #include "device/vibration/vibration_manager_impl.h"
31 #endif 32 #endif
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 java_interface_provider_.Bind(std::move(provider)); 212 java_interface_provider_.Bind(std::move(provider));
212 213
213 java_interface_provider_initialized_ = true; 214 java_interface_provider_initialized_ = true;
214 } 215 }
215 216
216 return &java_interface_provider_; 217 return &java_interface_provider_;
217 } 218 }
218 #endif 219 #endif
219 220
220 } // namespace device 221 } // namespace device
OLDNEW
« no previous file with comments | « components/signin/public/interfaces/account_id_traits.h ('k') | services/identity/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698