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

Issue 11027024: Android: Integrates native and java SystemMonitor. (Closed)

Created:
8 years, 2 months ago by bulach
Modified:
8 years, 2 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Android: Integrates native and java SystemMonitor. BUG=154293 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162124

Patch Set 1 #

Total comments: 4

Patch Set 2 : Comments #

Total comments: 10

Patch Set 3 : Vandebo's comments #

Total comments: 4

Patch Set 4 : Comments #

Total comments: 4

Patch Set 5 : Last nits #

Total comments: 2

Patch Set 6 : Initialize java side for tests. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -3 lines) Patch
M base/android/base_jni_registrar.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
A base/android/java/src/org/chromium/base/PowerStatusReceiver.java View 1 chunk +23 lines, -0 lines 0 comments Download
A base/android/java/src/org/chromium/base/SystemMonitor.java View 1 2 3 4 5 1 chunk +64 lines, -0 lines 0 comments Download
M base/base.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A base/system_monitor/system_monitor_android.h View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download
M base/system_monitor/system_monitor_android.cc View 1 2 3 4 1 chunk +17 lines, -2 lines 0 comments Download
M testing/android/java/src/org/chromium/native_test/ChromeNativeTestActivity.java View 1 2 3 4 5 2 chunks +4 lines, -0 lines 2 comments Download

Messages

Total messages: 25 (0 generated)
bulach
8 years, 2 months ago (2012-10-04 10:20:41 UTC) #1
Satish
http://codereview.chromium.org/11027024/diff/1/base/system_monitor/system_monitor_android.cc File base/system_monitor/system_monitor_android.cc (right): http://codereview.chromium.org/11027024/diff/1/base/system_monitor/system_monitor_android.cc#newcode22 base/system_monitor/system_monitor_android.cc:22: return base::android::g_is_battery_charging; Since IsBatteryPower() is a querying API, I ...
8 years, 2 months ago (2012-10-04 11:09:51 UTC) #2
bulach
thanks satish! clarification inline: http://codereview.chromium.org/11027024/diff/1/base/system_monitor/system_monitor_android.cc File base/system_monitor/system_monitor_android.cc (right): http://codereview.chromium.org/11027024/diff/1/base/system_monitor/system_monitor_android.cc#newcode22 base/system_monitor/system_monitor_android.cc:22: return base::android::g_is_battery_charging; On 2012/10/04 11:09:51, ...
8 years, 2 months ago (2012-10-04 11:16:32 UTC) #3
Satish
http://codereview.chromium.org/11027024/diff/1/base/system_monitor/system_monitor_android.cc File base/system_monitor/system_monitor_android.cc (right): http://codereview.chromium.org/11027024/diff/1/base/system_monitor/system_monitor_android.cc#newcode22 base/system_monitor/system_monitor_android.cc:22: return base::android::g_is_battery_charging; On 2012/10/04 11:16:32, bulach wrote: > On ...
8 years, 2 months ago (2012-10-04 11:31:07 UTC) #4
bulach
thanks satish! comments addressed, ptal.. http://codereview.chromium.org/11027024/diff/1/base/system_monitor/system_monitor_android.cc File base/system_monitor/system_monitor_android.cc (right): http://codereview.chromium.org/11027024/diff/1/base/system_monitor/system_monitor_android.cc#newcode22 base/system_monitor/system_monitor_android.cc:22: return base::android::g_is_battery_charging; On 2012/10/04 ...
8 years, 2 months ago (2012-10-04 13:58:50 UTC) #5
Satish
lgtm http://codereview.chromium.org/11027024/diff/2002/base/system_monitor/system_monitor.h File base/system_monitor/system_monitor.h (right): http://codereview.chromium.org/11027024/diff/2002/base/system_monitor/system_monitor.h#newcode238 base/system_monitor/system_monitor.h:238: bool is_battery_charging_; Good idea. This could also be ...
8 years, 2 months ago (2012-10-04 14:31:45 UTC) #6
bulach
thanks satish! adding vandebo, as he owns the refactoring for SystemMonitor: http://code.google.com/p/chromium/issues/detail?id=149059 vandebo: the approach ...
8 years, 2 months ago (2012-10-04 15:12:05 UTC) #7
vandebo (ex-Chrome)
On 2012/10/04 15:12:05, bulach wrote: > thanks satish! > adding vandebo, as he owns the ...
8 years, 2 months ago (2012-10-04 17:55:56 UTC) #8
bulach
thanks for the clarifications vandebo! I changed the implementation to be inline with other platforms, ...
8 years, 2 months ago (2012-10-04 18:33:33 UTC) #9
vandebo (ex-Chrome)
On 2012/10/04 18:33:33, bulach wrote: > thanks for the clarifications vandebo! > > I changed ...
8 years, 2 months ago (2012-10-04 19:19:22 UTC) #10
vandebo (ex-Chrome)
Also, please fill out BUG= and TEST= appropriately.
8 years, 2 months ago (2012-10-04 19:20:04 UTC) #11
bulach
thanks! all comments addressed, another look please? http://codereview.chromium.org/11027024/diff/13001/base/android/java/src/org/chromium/base/SystemMonitor.java File base/android/java/src/org/chromium/base/SystemMonitor.java (right): http://codereview.chromium.org/11027024/diff/13001/base/android/java/src/org/chromium/base/SystemMonitor.java#newcode45 base/android/java/src/org/chromium/base/SystemMonitor.java:45: status == ...
8 years, 2 months ago (2012-10-05 13:12:30 UTC) #12
Satish
lgtm http://codereview.chromium.org/11027024/diff/2004/base/system_monitor/system_monitor_android.h File base/system_monitor/system_monitor_android.h (right): http://codereview.chromium.org/11027024/diff/2004/base/system_monitor/system_monitor_android.h#newcode8 base/system_monitor/system_monitor_android.h:8: remove empty newline
8 years, 2 months ago (2012-10-05 14:13:38 UTC) #13
vandebo (ex-Chrome)
LGTM +jam for OWNERS You can now omit TEST=NONE lines. However, if there is a ...
8 years, 2 months ago (2012-10-05 15:35:39 UTC) #14
jam
On 2012/10/05 15:35:39, vandebo wrote: > LGTM +jam for OWNERS I'm not an owner for ...
8 years, 2 months ago (2012-10-05 16:14:25 UTC) #15
bulach
thanks satish, vandebo! comments addressed. jar: this needs OWNERS approval for base/, would you mind ...
8 years, 2 months ago (2012-10-05 16:22:49 UTC) #16
jar (doing other things)
Predominantly rubber stamp LGTM for base See nit/comment below. http://codereview.chromium.org/11027024/diff/4007/base/android/java/src/org/chromium/base/SystemMonitor.java File base/android/java/src/org/chromium/base/SystemMonitor.java (right): http://codereview.chromium.org/11027024/diff/4007/base/android/java/src/org/chromium/base/SystemMonitor.java#newcode27 base/android/java/src/org/chromium/base/SystemMonitor.java:27: ...
8 years, 2 months ago (2012-10-05 17:39:51 UTC) #17
bulach
thanks jar! clarification inline: http://codereview.chromium.org/11027024/diff/4007/base/android/java/src/org/chromium/base/SystemMonitor.java File base/android/java/src/org/chromium/base/SystemMonitor.java (right): http://codereview.chromium.org/11027024/diff/4007/base/android/java/src/org/chromium/base/SystemMonitor.java#newcode27 base/android/java/src/org/chromium/base/SystemMonitor.java:27: IntentFilter ifilter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED); ...
8 years, 2 months ago (2012-10-05 18:23:52 UTC) #18
bulach
satish: I needed to initialize the java side in the test harness, would you mind ...
8 years, 2 months ago (2012-10-08 13:35:42 UTC) #19
Satish
lgtm http://codereview.chromium.org/11027024/diff/13007/testing/android/java/src/org/chromium/native_test/ChromeNativeTestActivity.java File testing/android/java/src/org/chromium/native_test/ChromeNativeTestActivity.java (right): http://codereview.chromium.org/11027024/diff/13007/testing/android/java/src/org/chromium/native_test/ChromeNativeTestActivity.java#newcode44 testing/android/java/src/org/chromium/native_test/ChromeNativeTestActivity.java:44: // Needed by system_monitor_unittest.cc Since this is required ...
8 years, 2 months ago (2012-10-08 13:58:10 UTC) #20
bulach
thanks satish! clarification inline, will put through the CQ once the tries are happy. http://codereview.chromium.org/11027024/diff/13007/testing/android/java/src/org/chromium/native_test/ChromeNativeTestActivity.java ...
8 years, 2 months ago (2012-10-08 14:01:04 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/11027024/13007
8 years, 2 months ago (2012-10-08 14:38:04 UTC) #22
commit-bot: I haz the power
Retried try job too often for step(s) interactive_ui_tests
8 years, 2 months ago (2012-10-08 16:03:16 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/11027024/13007
8 years, 2 months ago (2012-10-16 10:02:47 UTC) #24
commit-bot: I haz the power
8 years, 2 months ago (2012-10-16 11:58:10 UTC) #25
Change committed as 162124

Powered by Google App Engine
This is Rietveld 408576698