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

Issue 685703002: Reland "Replace Chrome IPC with Mojo IPC for querying BatteryStatus service" (Closed)

Created:
6 years, 1 month ago by ppi
Modified:
6 years, 1 month ago
CC:
chromium-reviews, creis+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, nasko+codewatch_chromium.org, jam, timvolodine, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, yzshen+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, darin (slow to review), ben+mojo_chromium.org, qsr, blundell
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Reland "Replace Chrome IPC with Mojo IPC for querying BatteryStatus service" The original CL https://codereview.chromium.org/592153002 was reverted as it broke the battery status layout tests. BUG=420623 Committed: https://crrev.com/2438a3e2acb1318a4e59c78764b532bac3649161 Cr-Commit-Position: refs/heads/master@{#301719}

Patch Set 1 : The reverted patch set 23 from https://codereview.chromium.org/592153002 #

Patch Set 2 : Restore plumbing for layout tests. #

Total comments: 6

Patch Set 3 : Rebase. #

Patch Set 4 : Address Tim's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+844 lines, -2858 lines) Patch
M BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/app/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/app/android/library_loader_hooks.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/BUILD.gn View 3 chunks +7 lines, -14 lines 0 comments Download
M content/browser/DEPS View 2 chunks +1 line, -1 line 0 comments Download
M content/browser/android/browser_jni_registrar.cc View 2 chunks +0 lines, -2 lines 0 comments Download
D content/browser/battery_status/OWNERS View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/battery_status/battery_status_browsertest.cc View 9 chunks +31 lines, -29 lines 0 comments Download
D content/browser/battery_status/battery_status_manager.h View 1 chunk +0 lines, -36 lines 0 comments Download
D content/browser/battery_status/battery_status_manager_android.h View 1 chunk +0 lines, -45 lines 0 comments Download
D content/browser/battery_status/battery_status_manager_android.cc View 1 chunk +0 lines, -65 lines 0 comments Download
D content/browser/battery_status/battery_status_manager_chromeos.cc View 1 chunk +0 lines, -184 lines 0 comments Download
D content/browser/battery_status/battery_status_manager_default.cc View 1 chunk +0 lines, -40 lines 0 comments Download
D content/browser/battery_status/battery_status_manager_linux.h View 1 chunk +0 lines, -34 lines 0 comments Download
D content/browser/battery_status/battery_status_manager_linux.cc View 1 chunk +0 lines, -383 lines 0 comments Download
D content/browser/battery_status/battery_status_manager_linux_unittest.cc View 1 chunk +0 lines, -143 lines 0 comments Download
D content/browser/battery_status/battery_status_manager_mac.cc View 1 chunk +0 lines, -286 lines 0 comments Download
D content/browser/battery_status/battery_status_manager_win.h View 1 chunk +0 lines, -26 lines 0 comments Download
D content/browser/battery_status/battery_status_manager_win.cc View 1 chunk +0 lines, -239 lines 0 comments Download
D content/browser/battery_status/battery_status_manager_win_unittest.cc View 1 chunk +0 lines, -80 lines 0 comments Download
D content/browser/battery_status/battery_status_message_filter.cc View 1 chunk +0 lines, -56 lines 0 comments Download
D content/browser/battery_status/battery_status_service.h View 1 chunk +0 lines, -66 lines 0 comments Download
D content/browser/battery_status/battery_status_service.cc View 1 chunk +0 lines, -106 lines 0 comments Download
D content/browser/battery_status/battery_status_service_unittest.cc View 1 chunk +0 lines, -189 lines 0 comments Download
M content/browser/browser_main_loop.cc View 3 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 5 chunks +7 lines, -3 lines 0 comments Download
D content/common/battery_status_messages.h View 1 chunk +0 lines, -32 lines 0 comments Download
M content/common/content_message_generator.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/content.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/content_browser.gypi View 7 chunks +2 lines, -21 lines 0 comments Download
M content/content_common.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M content/content_jni.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M content/content_renderer.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 6 chunks +3 lines, -6 lines 0 comments Download
D content/public/android/java/src/org/chromium/content/browser/BatteryStatusManager.java View 1 chunk +0 lines, -148 lines 0 comments Download
D content/public/android/javatests/src/org/chromium/content/browser/BatteryStatusManagerTest.java View 1 chunk +0 lines, -166 lines 0 comments Download
M content/renderer/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/battery_status/battery_status_dispatcher.h View 1 chunk +12 lines, -15 lines 0 comments Download
M content/renderer/battery_status/battery_status_dispatcher.cc View 1 chunk +19 lines, -32 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 3 5 chunks +42 lines, -28 lines 0 comments Download
M content/renderer/shared_memory_seqlock_reader.h View 2 chunks +1 line, -2 lines 0 comments Download
M content/renderer/shared_memory_seqlock_reader.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M content/test/data/battery_status/battery_status_default_test.html View 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/battery_status/battery_status_promise_resolution_test.html View 1 chunk +1 line, -1 line 0 comments Download
A device/battery/BUILD.gn View 1 chunk +103 lines, -0 lines 0 comments Download
A + device/battery/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A device/battery/OWNERS View 1 chunk +4 lines, -0 lines 0 comments Download
A + device/battery/android/BUILD.gn View 1 chunk +5 lines, -4 lines 0 comments Download
A device/battery/android/battery_jni_registrar.h View 1 chunk +20 lines, -0 lines 0 comments Download
A device/battery/android/battery_jni_registrar.cc View 1 chunk +27 lines, -0 lines 0 comments Download
A + device/battery/android/java/src/org/chromium/device/battery/BatteryStatusManager.java View 4 chunks +5 lines, -5 lines 0 comments Download
A + device/battery/android/javatests/src/org/chromium/device/battery/BatteryStatusManagerTest.java View 1 chunk +1 line, -1 line 0 comments Download
A device/battery/battery.gyp View 1 chunk +141 lines, -0 lines 0 comments Download
A device/battery/battery_export.h View 1 chunk +29 lines, -0 lines 0 comments Download
A device/battery/battery_monitor.mojom View 1 chunk +18 lines, -0 lines 0 comments Download
A device/battery/battery_monitor_impl.h View 1 chunk +34 lines, -0 lines 0 comments Download
A device/battery/battery_monitor_impl.cc View 1 chunk +34 lines, -0 lines 0 comments Download
A + device/battery/battery_status.mojom View 1 chunk +6 lines, -8 lines 0 comments Download
A + device/battery/battery_status_manager.h View 2 chunks +7 lines, -8 lines 0 comments Download
A + device/battery/battery_status_manager_android.h View 2 chunks +6 lines, -6 lines 0 comments Download
A + device/battery/battery_status_manager_android.cc View 4 chunks +6 lines, -6 lines 0 comments Download
A + device/battery/battery_status_manager_chromeos.cc View 6 chunks +22 lines, -50 lines 0 comments Download
A + device/battery/battery_status_manager_default.cc View 2 chunks +3 lines, -3 lines 0 comments Download
A + device/battery/battery_status_manager_linux.h View 2 chunks +9 lines, -9 lines 0 comments Download
A + device/battery/battery_status_manager_linux.cc View 12 chunks +14 lines, -24 lines 0 comments Download
A + device/battery/battery_status_manager_linux_unittest.cc View 9 chunks +31 lines, -31 lines 0 comments Download
A + device/battery/battery_status_manager_mac.cc View 14 chunks +27 lines, -70 lines 0 comments Download
A + device/battery/battery_status_manager_win.h View 2 chunks +8 lines, -8 lines 0 comments Download
A + device/battery/battery_status_manager_win.cc View 8 chunks +20 lines, -47 lines 0 comments Download
A + device/battery/battery_status_manager_win_unittest.cc View 6 chunks +18 lines, -18 lines 0 comments Download
A + device/battery/battery_status_service.h View 3 chunks +23 lines, -18 lines 0 comments Download
A + device/battery/battery_status_service.cc View 5 chunks +30 lines, -30 lines 0 comments Download
A + device/battery/battery_status_service_unittest.cc View 11 chunks +31 lines, -26 lines 0 comments Download
M device/device_tests.gyp View 4 chunks +15 lines, -1 line 0 comments Download
M mojo/common/handle_watcher.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
ppi
Hi Tim, ps1 is what was originally reviewed and landed. ps2 restores plumbing for layout ...
6 years, 1 month ago (2014-10-28 16:09:44 UTC) #2
timvolodine
I understand the only change is in content/renderer/renderer_blink_platform_impl.cc. lgtm, a couple of comments below: https://codereview.chromium.org/685703002/diff/20001/content/renderer/renderer_blink_platform_impl.cc ...
6 years, 1 month ago (2014-10-28 18:59:28 UTC) #3
ppi
Thanks! Adding the other reviewers. This is mostly the same as the original patch (uploaded ...
6 years, 1 month ago (2014-10-28 19:24:34 UTC) #6
Tom Sepez
Rubberstamp LGTM from previous patch.
6 years, 1 month ago (2014-10-28 19:30:12 UTC) #7
darin (slow to review)
Rubber stamp LGTM
6 years, 1 month ago (2014-10-28 20:11:18 UTC) #9
Ken Rockot(use gerrit already)
lgtm
6 years, 1 month ago (2014-10-28 20:25:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/685703002/60001
6 years, 1 month ago (2014-10-28 21:06:32 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 1 month ago (2014-10-28 21:55:22 UTC) #13
commit-bot: I haz the power
6 years, 1 month ago (2014-10-28 21:56:06 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2438a3e2acb1318a4e59c78764b532bac3649161
Cr-Commit-Position: refs/heads/master@{#301719}

Powered by Google App Engine
This is Rietveld 408576698