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

Issue 356873002: battery-status: Implement the battery-status API for chromeos. (Closed)

Created:
6 years, 6 months ago by sadrul
Modified:
6 years, 5 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Project:
chromium
Visibility:
Public.

Description

battery-status: Implement the battery-status API for chromeos. This patch changes BatteryStatusManager to be a pure interface, and moves platform-specific sub-classes to provide the necessary implementations. BUG=122593 TEST=manual, using http://jsbin.com/battery-status-diagnostics R=brettw@chromium.org, jdduke@chromium.org, timvolodine@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283015

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Total comments: 14

Patch Set 8 : . #

Patch Set 9 : scoped_ptr #

Total comments: 7

Patch Set 10 : RefCountedThreadSafe #

Total comments: 2

Patch Set 11 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -70 lines) Patch
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/android/browser_jni_registrar.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/battery_status/battery_status_browsertest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/battery_status/battery_status_manager.h View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -31 lines 0 comments Download
A content/browser/battery_status/battery_status_manager_android.h View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
M content/browser/battery_status/battery_status_manager_android.cc View 1 2 3 4 5 6 7 8 4 chunks +21 lines, -12 lines 0 comments Download
A content/browser/battery_status/battery_status_manager_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +184 lines, -0 lines 0 comments Download
M content/browser/battery_status/battery_status_manager_default.cc View 1 2 3 4 5 6 7 8 1 chunk +23 lines, -14 lines 0 comments Download
M content/browser/battery_status/battery_status_service.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/browser/battery_status/battery_status_service_unittest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/BatteryStatusManager.java View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
sadrul
Hi! I haven't had a chance to try this out on a device yet. But ...
6 years, 6 months ago (2014-06-26 04:50:44 UTC) #1
sadrul
On 2014/06/26 04:50:44, sadrul wrote: > Hi! I haven't had a chance to try this ...
6 years, 5 months ago (2014-06-30 04:09:29 UTC) #2
timvolodine
Thanks Sadrul, just a few comments below. also I think you can refer to crbug.com/122593 ...
6 years, 5 months ago (2014-07-02 19:41:39 UTC) #3
sadrul
I have addressed your comments. I have also changed BatteryStatusManager::Create() to return a scoped_ptr<> instead ...
6 years, 5 months ago (2014-07-04 16:58:19 UTC) #4
timvolodine
https://codereview.chromium.org/356873002/diff/190001/content/browser/battery_status/battery_status_manager_chromeos.cc File content/browser/battery_status/battery_status_manager_chromeos.cc (right): https://codereview.chromium.org/356873002/diff/190001/content/browser/battery_status/battery_status_manager_chromeos.cc#newcode35 content/browser/battery_status/battery_status_manager_chromeos.cc:35: power_manager::PowerSupplyProperties_BatteryState_NOT_PRESENT; On 2014/07/04 16:58:18, sadrul (OOO) wrote: > On ...
6 years, 5 months ago (2014-07-09 11:35:02 UTC) #5
sadrul
https://codereview.chromium.org/356873002/diff/230001/content/browser/battery_status/battery_status_manager_chromeos.cc File content/browser/battery_status/battery_status_manager_chromeos.cc (right): https://codereview.chromium.org/356873002/diff/230001/content/browser/battery_status/battery_status_manager_chromeos.cc#newcode32 content/browser/battery_status/battery_status_manager_chromeos.cc:32: if (!currently_listening_) On 2014/07/09 11:35:01, timvolodine wrote: > This ...
6 years, 5 months ago (2014-07-13 09:04:55 UTC) #6
timvolodine
thanks! lgtm. in description could you please add TEST=manual+url for future reference. https://codereview.chromium.org/356873002/diff/230001/content/browser/battery_status/battery_status_manager_chromeos.cc File content/browser/battery_status/battery_status_manager_chromeos.cc ...
6 years, 5 months ago (2014-07-14 17:38:56 UTC) #7
sadrul
jdduke@chromium.org: Please review changes in browser_jni_registrar.cc brettw@chromium.org: Please review changes in BUILD.gn https://codereview.chromium.org/356873002/diff/290001/content/browser/battery_status/battery_status_manager_chromeos.cc File content/browser/battery_status/battery_status_manager_chromeos.cc ...
6 years, 5 months ago (2014-07-14 17:46:31 UTC) #8
jdduke (slow)
On 2014/07/14 17:46:31, sadrul wrote: > mailto:jdduke@chromium.org: Please review changes in browser_jni_registrar.cc lgtm
6 years, 5 months ago (2014-07-14 18:09:18 UTC) #9
brettw
BUILD.gn LGTM
6 years, 5 months ago (2014-07-14 19:38:59 UTC) #10
sadrul
6 years, 5 months ago (2014-07-14 20:55:47 UTC) #11
Message was sent while issue was closed.
Committed patchset #11 manually as r283015 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698