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

Issue 2818673003: [DeviceService] Expose battery monitoring solely via the Device Service (Closed)

Created:
3 years, 8 months ago by leonhsl(Using Gerrit)
Modified:
3 years, 7 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, mlamouri+watch-blink_chromium.org, mac-reviews_chromium.org, jam, timvolodine, abarth-chromium, haraken, Aaron Boodman, darin-cc_chromium.org, yzshen+watch_chromium.org, agrieve+watch_chromium.org, blink-reviews, darin (slow to review), android-webview-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[DeviceService] Expose battery monitoring solely via the Device Service This CL makes battery impl be completely only part of the implementation of the Device Service. - Moves //device/battery to //services/device/battery - Makes //services/device/battery visible in GN only to //services/device BUG=684422 TBR=stevenjb@chromium.org, tsepez@chromium.org, boliu@chromium.org Review-Url: https://codereview.chromium.org/2818673003 Cr-Commit-Position: refs/heads/master@{#468899} Committed: https://chromium.googlesource.com/chromium/src/+/cb374e8d7a568886dd2bbf469c67f91de19fa4f3

Patch Set 1 #

Patch Set 2 : Depend on CL https://codereview.chromium.org/2819163002/ #

Patch Set 3 : Rebase only #

Total comments: 6

Patch Set 4 : Rebase only #

Patch Set 5 : Java file format change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -4177 lines) Patch
M android_webview/native/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/DEPS View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M device/BUILD.gn View 1 2 3 5 chunks +0 lines, -11 lines 0 comments Download
D device/battery/BUILD.gn View 1 chunk +0 lines, -80 lines 0 comments Download
D device/battery/DEPS View 1 chunk +0 lines, -3 lines 0 comments Download
D device/battery/OWNERS View 1 chunk +0 lines, -4 lines 0 comments Download
D device/battery/android/BUILD.gn View 1 chunk +0 lines, -23 lines 0 comments Download
D device/battery/android/java/src/org/chromium/device/battery/BatteryMonitorFactory.java View 1 chunk +0 lines, -74 lines 0 comments Download
D device/battery/android/java/src/org/chromium/device/battery/BatteryMonitorImpl.java View 1 chunk +0 lines, -80 lines 0 comments Download
D device/battery/android/java/src/org/chromium/device/battery/BatteryStatusManager.java View 1 2 3 1 chunk +0 lines, -194 lines 0 comments Download
D device/battery/android/javatests/src/org/chromium/device/battery/BatteryStatusManagerTest.java View 1 chunk +0 lines, -236 lines 0 comments Download
D device/battery/battery_export.h View 1 chunk +0 lines, -29 lines 0 comments Download
D device/battery/battery_monitor.mojom View 1 chunk +0 lines, -15 lines 0 comments Download
D device/battery/battery_monitor_impl.h View 1 chunk +0 lines, -46 lines 0 comments Download
D device/battery/battery_monitor_impl.cc View 1 chunk +0 lines, -65 lines 0 comments Download
D device/battery/battery_status.mojom View 1 chunk +0 lines, -12 lines 0 comments Download
D device/battery/battery_status_manager.h View 1 chunk +0 lines, -36 lines 0 comments Download
D device/battery/battery_status_manager_chromeos.cc View 1 chunk +0 lines, -157 lines 0 comments Download
D device/battery/battery_status_manager_default.cc View 1 chunk +0 lines, -43 lines 0 comments Download
D device/battery/battery_status_manager_linux.h View 1 chunk +0 lines, -75 lines 0 comments Download
D device/battery/battery_status_manager_linux.cc View 1 chunk +0 lines, -622 lines 0 comments Download
D device/battery/battery_status_manager_linux-inl.h View 1 chunk +0 lines, -28 lines 0 comments Download
D device/battery/battery_status_manager_linux_unittest.cc View 1 chunk +0 lines, -1223 lines 0 comments Download
D device/battery/battery_status_manager_mac.cc View 1 chunk +0 lines, -246 lines 0 comments Download
D device/battery/battery_status_manager_win.h View 1 chunk +0 lines, -26 lines 0 comments Download
D device/battery/battery_status_manager_win.cc View 1 chunk +0 lines, -217 lines 0 comments Download
D device/battery/battery_status_manager_win_unittest.cc View 1 chunk +0 lines, -80 lines 0 comments Download
D device/battery/battery_status_service.h View 1 chunk +0 lines, -76 lines 0 comments Download
D device/battery/battery_status_service.cc View 1 1 chunk +0 lines, -112 lines 0 comments Download
D device/battery/battery_status_service_unittest.cc View 1 chunk +0 lines, -192 lines 0 comments Download
M services/device/BUILD.gn View 1 2 6 chunks +16 lines, -7 lines 0 comments Download
A + services/device/battery/BUILD.gn View 3 chunks +9 lines, -13 lines 0 comments Download
A + services/device/battery/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A + services/device/battery/android/BUILD.gn View 2 chunks +2 lines, -1 line 0 comments Download
A + services/device/battery/android/java/src/org/chromium/device/battery/BatteryMonitorFactory.java View 2 chunks +2 lines, -2 lines 0 comments Download
A + services/device/battery/android/java/src/org/chromium/device/battery/BatteryMonitorImpl.java View 1 chunk +3 lines, -5 lines 0 comments Download
A + services/device/battery/android/java/src/org/chromium/device/battery/BatteryStatusManager.java View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
A + services/device/battery/android/javatests/src/org/chromium/device/battery/BatteryStatusManagerTest.java View 3 chunks +12 lines, -12 lines 0 comments Download
A + services/device/battery/battery_monitor_impl.h View 2 chunks +6 lines, -8 lines 0 comments Download
A + services/device/battery/battery_monitor_impl.cc View 3 chunks +3 lines, -5 lines 0 comments Download
M services/device/battery/battery_monitor_impl_unittest.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download
A + services/device/battery/battery_status_manager.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + services/device/battery/battery_status_manager_chromeos.cc View 1 chunk +1 line, -1 line 0 comments Download
A + services/device/battery/battery_status_manager_default.cc View 1 chunk +1 line, -1 line 0 comments Download
A + services/device/battery/battery_status_manager_linux.h View 3 chunks +6 lines, -8 lines 0 comments Download
A + services/device/battery/battery_status_manager_linux.cc View 5 chunks +6 lines, -8 lines 0 comments Download
A + services/device/battery/battery_status_manager_linux-inl.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + services/device/battery/battery_status_manager_linux_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
A + services/device/battery/battery_status_manager_mac.cc View 7 chunks +17 lines, -21 lines 0 comments Download
A + services/device/battery/battery_status_manager_win.h View 2 chunks +5 lines, -6 lines 0 comments Download
A + services/device/battery/battery_status_manager_win.cc View 7 chunks +7 lines, -10 lines 0 comments Download
A + services/device/battery/battery_status_manager_win_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A + services/device/battery/battery_status_service.h View 3 chunks +5 lines, -6 lines 0 comments Download
A + services/device/battery/battery_status_service.cc View 1 4 chunks +9 lines, -12 lines 0 comments Download
A + services/device/battery/battery_status_service_unittest.cc View 4 chunks +7 lines, -15 lines 0 comments Download
M services/device/device_service.h View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M services/device/device_service.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M services/device/public/interfaces/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A + services/device/public/interfaces/battery_monitor.mojom View 1 chunk +1 line, -1 line 0 comments Download
A + services/device/public/interfaces/battery_status.mojom View 0 chunks +-1 lines, --1 lines 0 comments Download
M third_party/WebKit/LayoutTests/battery-status/resources/mock-battery-monitor.js View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/battery/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/battery/BatteryDispatcher.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/battery/DEPS View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 50 (39 generated)
leonhsl(Using Gerrit)
PTAL, Thanks.
3 years, 8 months ago (2017-04-17 08:09:01 UTC) #22
leonhsl(Using Gerrit)
3 years, 8 months ago (2017-04-17 23:50:44 UTC) #24
blundell
lgtm, thanks!
3 years, 8 months ago (2017-04-18 13:36:08 UTC) #25
leonhsl(Using Gerrit)
+Tim for battery OWNER review, Thanks!
3 years, 8 months ago (2017-04-19 03:31:53 UTC) #27
leonhsl(Using Gerrit)
Friendly ping Tim~ Uploaded ps#3 to rebase onto ToT, PTAL, Thanks!
3 years, 8 months ago (2017-04-25 06:56:41 UTC) #32
blundell
Hey Tim, Friendly ping! Thanks, Colin
3 years, 7 months ago (2017-05-02 08:44:38 UTC) #33
timvolodine
Apologies for the delay, must have missed it somehow.. Looking fine to me overall so ...
3 years, 7 months ago (2017-05-02 18:19:05 UTC) #34
leonhsl(Using Gerrit)
Thanks Tim a lot for review! Uploaded ps#5 to address comments. https://codereview.chromium.org/2818673003/diff/80001/services/device/battery/BUILD.gn File services/device/battery/BUILD.gn (left): ...
3 years, 7 months ago (2017-05-03 03:07:02 UTC) #39
leonhsl(Using Gerrit)
Let me TBR OWNERs for trivial changes: tsepez@: mechanical movement of battery_monitor.mojom and battery_status.mojom stevenjb@: ...
3 years, 7 months ago (2017-05-03 03:15:12 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2818673003/120001
3 years, 7 months ago (2017-05-03 05:16:31 UTC) #47
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 05:22:53 UTC) #50
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/cb374e8d7a568886dd2bbf469c67...

Powered by Google App Engine
This is Rietveld 408576698