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

Issue 267893003: Battery Status API: add plumbing for multi-platform support. (Closed)

Created:
6 years, 7 months ago by timvolodine
Modified:
6 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Battery Status API: add plumbing for multi-platform support. Make the battery_status_manager generic for all platforms. Currently there is an implementation only for the android platform. BUG=122593, 360068 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270124

Patch Set 1 #

Total comments: 4

Patch Set 2 : Marcus's comments #

Total comments: 2

Patch Set 3 : fix Michael's comment #

Patch Set 4 : fix compile: include "base/logging.h" #

Total comments: 6

Patch Set 5 : fixed comments #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -57 lines) Patch
M content/browser/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/android/browser_jni_registrar.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
A content/browser/battery_status/battery_status_manager.h View 1 2 3 4 1 chunk +54 lines, -0 lines 0 comments Download
D content/browser/battery_status/battery_status_manager_android.h View 1 chunk +0 lines, -40 lines 0 comments Download
M content/browser/battery_status/battery_status_manager_android.cc View 1 2 3 4 2 chunks +15 lines, -11 lines 0 comments Download
A content/browser/battery_status/battery_status_manager_default.cc View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
A content/browser/battery_status/battery_status_update_callback.h View 1 chunk +18 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/BatteryStatusManager.java View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
timvolodine
6 years, 7 months ago (2014-05-02 15:36:52 UTC) #1
timvolodine
+bulach@ : content/browser/android/browser_jni_registrar.cc
6 years, 7 months ago (2014-05-02 15:57:25 UTC) #2
bulach
https://codereview.chromium.org/267893003/diff/1/content/browser/battery_status/battery_status_manager.h File content/browser/battery_status/battery_status_manager.h (right): https://codereview.chromium.org/267893003/diff/1/content/browser/battery_status/battery_status_manager.h#newcode22 content/browser/battery_status/battery_status_manager.h:22: BatteryStatusManager(const BatteryStatusUpdateCallback& callback); nit: explicit https://codereview.chromium.org/267893003/diff/1/content/browser/battery_status/battery_status_manager_default.cc File content/browser/battery_status/battery_status_manager_default.cc (right): ...
6 years, 7 months ago (2014-05-02 16:41:15 UTC) #3
timvolodine
thanks for the comments Marcus. https://codereview.chromium.org/267893003/diff/1/content/browser/battery_status/battery_status_manager.h File content/browser/battery_status/battery_status_manager.h (right): https://codereview.chromium.org/267893003/diff/1/content/browser/battery_status/battery_status_manager.h#newcode22 content/browser/battery_status/battery_status_manager.h:22: BatteryStatusManager(const BatteryStatusUpdateCallback& callback); On ...
6 years, 7 months ago (2014-05-06 12:12:18 UTC) #4
Michael van Ouwerkerk
lgtm https://codereview.chromium.org/267893003/diff/20001/content/browser/battery_status/battery_status_manager.h File content/browser/battery_status/battery_status_manager.h (right): https://codereview.chromium.org/267893003/diff/20001/content/browser/battery_status/battery_status_manager.h#newcode29 content/browser/battery_status/battery_status_manager.h:29: // Stop listenting for battery status changes Nit: ...
6 years, 7 months ago (2014-05-06 12:23:56 UTC) #5
timvolodine
https://codereview.chromium.org/267893003/diff/20001/content/browser/battery_status/battery_status_manager.h File content/browser/battery_status/battery_status_manager.h (right): https://codereview.chromium.org/267893003/diff/20001/content/browser/battery_status/battery_status_manager.h#newcode29 content/browser/battery_status/battery_status_manager.h:29: // Stop listenting for battery status changes On 2014/05/06 ...
6 years, 7 months ago (2014-05-06 12:31:48 UTC) #6
timvolodine
On 2014/05/06 12:31:48, timvolodine wrote: > https://codereview.chromium.org/267893003/diff/20001/content/browser/battery_status/battery_status_manager.h > File content/browser/battery_status/battery_status_manager.h (right): > > https://codereview.chromium.org/267893003/diff/20001/content/browser/battery_status/battery_status_manager.h#newcode29 > ...
6 years, 7 months ago (2014-05-07 15:56:56 UTC) #7
bulach
lgtm, thanks! small nits and suggestions below. https://codereview.chromium.org/267893003/diff/60001/content/browser/battery_status/battery_status_manager.h File content/browser/battery_status/battery_status_manager.h (right): https://codereview.chromium.org/267893003/diff/60001/content/browser/battery_status/battery_status_manager.h#newcode38 content/browser/battery_status/battery_status_manager.h:38: jdouble chargingTime, ...
6 years, 7 months ago (2014-05-07 16:03:15 UTC) #8
timvolodine
thanks for the reviews! https://codereview.chromium.org/267893003/diff/60001/content/browser/battery_status/battery_status_manager.h File content/browser/battery_status/battery_status_manager.h (right): https://codereview.chromium.org/267893003/diff/60001/content/browser/battery_status/battery_status_manager.h#newcode38 content/browser/battery_status/battery_status_manager.h:38: jdouble chargingTime, jdouble dischargingTime, On ...
6 years, 7 months ago (2014-05-09 15:23:49 UTC) #9
timvolodine
The CQ bit was checked by timvolodine@chromium.org
6 years, 7 months ago (2014-05-13 15:47:14 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timvolodine@chromium.org/267893003/100001
6 years, 7 months ago (2014-05-13 15:47:49 UTC) #11
commit-bot: I haz the power
6 years, 7 months ago (2014-05-13 16:41:56 UTC) #12
Message was sent while issue was closed.
Change committed as 270124

Powered by Google App Engine
This is Rietveld 408576698