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

Unified Diff: services/device/device_service.cc

Issue 2801173004: Add '.mojom' suffix for battery mojom modules. (Closed)
Patch Set: Rebase only Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/device/device_service.h ('k') | services/device/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/device/device_service.cc
diff --git a/services/device/device_service.cc b/services/device/device_service.cc
index 7cb98e0d828528421dfe34d0ee4d52133d0d59b1..2535dadae22463ba77ee95abc4e64b81c042499c 100644
--- a/services/device/device_service.cc
+++ b/services/device/device_service.cc
@@ -95,13 +95,13 @@ void DeviceService::OnStart() {
registry_.AddInterface<mojom::WakeLockContextProvider>(this);
#if defined(OS_ANDROID)
- registry_.AddInterface(
- GetJavaInterfaceProvider()->CreateInterfaceFactory<BatteryMonitor>());
+ registry_.AddInterface(GetJavaInterfaceProvider()
+ ->CreateInterfaceFactory<mojom::BatteryMonitor>());
registry_.AddInterface(
GetJavaInterfaceProvider()
->CreateInterfaceFactory<mojom::VibrationManager>());
#else
- registry_.AddInterface<BatteryMonitor>(this);
+ registry_.AddInterface<mojom::BatteryMonitor>(this);
registry_.AddInterface<mojom::VibrationManager>(this);
#endif
}
@@ -116,8 +116,8 @@ void DeviceService::OnBindInterface(
#if !defined(OS_ANDROID)
void DeviceService::Create(const service_manager::Identity& remote_identity,
- BatteryMonitorRequest request) {
- device::BatteryMonitorImpl::Create(std::move(request));
+ mojom::BatteryMonitorRequest request) {
+ BatteryMonitorImpl::Create(std::move(request));
}
void DeviceService::Create(const service_manager::Identity& remote_identity,
« no previous file with comments | « services/device/device_service.h ('k') | services/device/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698