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

Unified Diff: services/device/battery/BUILD.gn

Issue 2818673003: [DeviceService] Expose battery monitoring solely via the Device Service (Closed)
Patch Set: Java file format change 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/BUILD.gn ('k') | services/device/battery/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/device/battery/BUILD.gn
diff --git a/device/battery/BUILD.gn b/services/device/battery/BUILD.gn
similarity index 83%
rename from device/battery/BUILD.gn
rename to services/device/battery/BUILD.gn
index 2647882a89477eed07a74d0124b9c5fca5437eca..4f8a2a980f3944589304ac8c6595aba7689f84b0 100644
--- a/device/battery/BUILD.gn
+++ b/services/device/battery/BUILD.gn
@@ -5,13 +5,15 @@
import("//build/config/features.gni")
import("//mojo/public/tools/bindings/mojom.gni")
-# On android, BatteryManager mojo service is implemented directly in Java.
+# On android, BatteryManager mojo interface is implemented directly in Java.
if (!is_android) {
- component("battery") {
- output_name = "device_battery"
+ source_set("battery") {
+ visibility = [
+ "//services/device:lib",
+ "//services/device:tests",
+ ]
sources = [
- "battery_export.h",
"battery_monitor_impl.cc",
"battery_monitor_impl.h",
"battery_status_manager.h",
@@ -27,10 +29,11 @@ if (!is_android) {
"battery_status_service.h",
]
- defines = [ "DEVICE_BATTERY_IMPLEMENTATION" ]
+ public_deps = [
+ "//services/device/public/interfaces",
+ ]
deps = [
- ":mojo_bindings",
"//base",
"//base/third_party/dynamic_annotations",
"//mojo/public/cpp/bindings",
@@ -71,10 +74,3 @@ if (!is_android) {
}
}
}
-
-mojom("mojo_bindings") {
- sources = [
- "battery_monitor.mojom",
- "battery_status.mojom",
- ]
-}
« no previous file with comments | « services/device/BUILD.gn ('k') | services/device/battery/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698