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

Issue 17074009: Created multi-process-friendly PowerMonitor interface. (Closed)

Created:
7 years, 6 months ago by bajones
Modified:
7 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, sh, Matt Perry, willchan no longer on Chromium, jar (doing other things), agl, Chris Evans, sky, piman, brettw, Avi (use Gerrit), gab
Visibility:
Public.

Description

Created multi-process-friendly PowerMonitor interface. PowerMonitor status is now captured in the browser process, which has the appropriate UI thread, and then sent via IPC to other processes which are interested in the power state. BUG=236031 R=apatrick@chromium.org, jam@chromium.org, jar@chromium.org, jvoung@chromium.org, kbr@chromium.org, mpcomplete@chromium.org, palmer@chromium.org, piman@chromium.org, vandebo@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215381

Patch Set 1 #

Total comments: 16

Patch Set 2 : Uber-refactor #

Total comments: 28

Patch Set 3 : Addressing Feedback #

Total comments: 10

Patch Set 4 : Moved PowerMonitorMessageBroadcaster to GpuProcessHostUIShim, other feedback addressed #

Patch Set 5 : Rebase #

Total comments: 17

Patch Set 6 : Windows fixes, Power messages posted to main GPU thread now #

Total comments: 2

Patch Set 7 : Reverted MessageLoopProxy use, better comments, synchronized battery bool access #

Patch Set 8 : Rebase #

Patch Set 9 : Android Fixed #

Total comments: 31

Patch Set 10 : Addressing feedback from palmer and vandebo #

Total comments: 4

Patch Set 11 : Addressing vandebo's feedback, part 2 #

Total comments: 1

Patch Set 12 : Expanding units tests #

Total comments: 1

Patch Set 13 : Fixed message export for unit tests #

Total comments: 13

Patch Set 14 : Addressing piman feedback [Part 1] #

Patch Set 15 : Addressing piman feedback [Part 2] #

Total comments: 4

Patch Set 16 : Killing Nits #

Total comments: 8

Patch Set 17 : Addressing final nits #

Total comments: 6

Patch Set 18 : Moved power_monitor_message_broadcaster into content/browser, rebased #

Patch Set 19 : Wired up to all child processes, as requested by @jam #

Total comments: 11

Patch Set 20 : Addressing @piman's threading concerns #

Total comments: 3

Patch Set 21 : Further simplifying based on @piman's feedback #

Total comments: 7

Patch Set 22 : Addressed nits #

Total comments: 3

Patch Set 23 : Fixed BroadcastSource threading issues #

Patch Set 24 : Updates to unit tests #

Total comments: 1

Patch Set 25 : Rebased #

Patch Set 26 : Fixed windows unit tests #

Patch Set 27 : Fixing windows unit test errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+967 lines, -684 lines) Patch
M base/android/base_jni_registrar.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M base/base.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +13 lines, -7 lines 0 comments Download
M base/power_monitor/power_monitor.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +11 lines, -102 lines 0 comments Download
M base/power_monitor/power_monitor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +10 lines, -55 lines 0 comments Download
D base/power_monitor/power_monitor_android.h View 1 2 3 4 5 1 chunk +0 lines, -17 lines 0 comments Download
M base/power_monitor/power_monitor_android.cc View 1 2 3 1 chunk +0 lines, -42 lines 0 comments Download
A + base/power_monitor/power_monitor_device_source.h View 1 2 3 4 5 6 7 8 9 4 chunks +10 lines, -46 lines 0 comments Download
A base/power_monitor/power_monitor_device_source.cc View 1 2 3 4 5 1 chunk +39 lines, -0 lines 0 comments Download
A + base/power_monitor/power_monitor_device_source_android.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
A + base/power_monitor/power_monitor_device_source_android.cc View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -8 lines 0 comments Download
A + base/power_monitor/power_monitor_device_source_ios.mm View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
A + base/power_monitor/power_monitor_device_source_mac.mm View 1 2 3 4 5 6 7 8 9 5 chunks +15 lines, -9 lines 0 comments Download
A + base/power_monitor/power_monitor_device_source_posix.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
A + base/power_monitor/power_monitor_device_source_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 7 chunks +29 lines, -17 lines 0 comments Download
M base/power_monitor/power_monitor_ios.mm View 1 2 3 1 chunk +0 lines, -40 lines 0 comments Download
M base/power_monitor/power_monitor_mac.mm View 1 2 3 1 chunk +0 lines, -101 lines 0 comments Download
M base/power_monitor/power_monitor_posix.cc View 1 2 3 1 chunk +0 lines, -14 lines 0 comments Download
A base/power_monitor/power_monitor_source.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +65 lines, -0 lines 0 comments Download
A base/power_monitor/power_monitor_source.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +66 lines, -0 lines 0 comments Download
A base/power_monitor/power_monitor_test_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +50 lines, -0 lines 0 comments Download
A base/power_monitor/power_monitor_test_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +64 lines, -0 lines 0 comments Download
M base/power_monitor/power_monitor_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +43 lines, -69 lines 0 comments Download
M base/power_monitor/power_monitor_win.cc View 1 2 3 1 chunk +0 lines, -118 lines 0 comments Download
M base/timer/hi_res_timer_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +5 lines, -1 line 0 comments Download
M base/timer/hi_res_timer_manager_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/event_router_forwarder_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/nacl/nacl_exe_win_64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +4 lines, -1 line 0 comments Download
M components/nacl/loader/nacl_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +4 lines, -1 line 0 comments Download
M content/app/content_main_runner.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/browser_child_process_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/browser_child_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +4 lines, -1 line 0 comments Download
A content/browser/power_monitor_message_broadcaster.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +41 lines, -0 lines 0 comments Download
A content/browser/power_monitor_message_broadcaster.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 19 1 chunk +39 lines, -0 lines 0 comments Download
A content/browser/power_monitor_message_broadcaster_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 19 20 21 22 23 1 chunk +109 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +2 lines, -1 line 0 comments Download
M content/child/child_thread.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +3 lines, -0 lines 0 comments Download
M content/child/child_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +11 lines, -0 lines 0 comments Download
A content/child/power_monitor_broadcast_source.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +44 lines, -0 lines 0 comments Download
A content/child/power_monitor_broadcast_source.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +108 lines, -0 lines 0 comments Download
A content/child/power_monitor_broadcast_source_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +95 lines, -0 lines 0 comments Download
M content/common/content_message_generator.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A content/common/power_monitor_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +26 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_child.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +2 lines, -0 lines 0 comments Download
M content/plugin/plugin_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 3 chunks +1 line, -4 lines 0 comments Download
M content/public/test/browser_test_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/renderer_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 3 chunks +2 lines, -4 lines 0 comments Download
M content/utility/utility_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 3 chunks +2 lines, -4 lines 0 comments Download
M content/worker/worker_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 3 chunks +2 lines, -4 lines 0 comments Download
M ipc/ipc_message_start.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 88 (0 generated)
bajones
Fair warning: This is my first CL defining a new cross-process interface, and as such ...
7 years, 6 months ago (2013-06-21 23:11:45 UTC) #1
scottmg
i'm probably not the best reviewer, but seems reasonable to me. https://codereview.chromium.org/17074009/diff/1/content/common/power_monitor_client.h File content/common/power_monitor_client.h (right): ...
7 years, 6 months ago (2013-06-22 00:11:24 UTC) #2
bajones
On 2013/06/22 00:11:24, scottmg wrote: > i'm probably not the best reviewer, but seems reasonable ...
7 years, 6 months ago (2013-06-23 20:56:26 UTC) #3
wrong vandebo
https://codereview.chromium.org/17074009/diff/1/content/common/power_monitor_client.h File content/common/power_monitor_client.h (right): https://codereview.chromium.org/17074009/diff/1/content/common/power_monitor_client.h#newcode18 content/common/power_monitor_client.h:18: class CONTENT_EXPORT PowerMonitorClient { So this class looks basically ...
7 years, 6 months ago (2013-06-24 16:34:49 UTC) #4
Ken Russell (switch to Gerrit)
A good start. https://codereview.chromium.org/17074009/diff/1/content/common/gpu/client/gpu_channel_host.cc File content/common/gpu/client/gpu_channel_host.cc (right): https://codereview.chromium.org/17074009/diff/1/content/common/gpu/client/gpu_channel_host.cc#newcode63 content/common/gpu/client/gpu_channel_host.cc:63: power_monitor->AddObserver(power_monitor_service_.get()); Unless I'm misremembering and misreading ...
7 years, 6 months ago (2013-06-24 22:54:38 UTC) #5
bajones
I'm in the middle of refactoring this code to be more inline with what vandebo ...
7 years, 6 months ago (2013-06-25 18:33:34 UTC) #6
vandebo (ex-Chrome)
https://codereview.chromium.org/17074009/diff/1/content/common/power_monitor_client.h File content/common/power_monitor_client.h (right): https://codereview.chromium.org/17074009/diff/1/content/common/power_monitor_client.h#newcode18 content/common/power_monitor_client.h:18: class CONTENT_EXPORT PowerMonitorClient { On 2013/06/25 18:33:34, bajones wrote: ...
7 years, 6 months ago (2013-06-25 18:37:14 UTC) #7
bajones
On 2013/06/25 18:37:14, vandebo wrote: > https://codereview.chromium.org/17074009/diff/1/content/common/power_monitor_client.h > File content/common/power_monitor_client.h (right): > > https://codereview.chromium.org/17074009/diff/1/content/common/power_monitor_client.h#newcode18 > ...
7 years, 6 months ago (2013-06-26 18:36:54 UTC) #8
vandebo (ex-Chrome)
I like this direction. It'll make doing the same thing for renderer processes nearly trivial. ...
7 years, 6 months ago (2013-06-26 21:40:33 UTC) #9
bajones
Thanks for the review! Changes incoming, but a few comments/questions in the meantime: https://codereview.chromium.org/17074009/diff/17001/base/power_monitor/power_monitor_source.h File ...
7 years, 6 months ago (2013-06-26 22:37:21 UTC) #10
vandebo (ex-Chrome)
https://codereview.chromium.org/17074009/diff/17001/base/power_monitor/power_monitor_source.h File base/power_monitor/power_monitor_source.h (right): https://codereview.chromium.org/17074009/diff/17001/base/power_monitor/power_monitor_source.h#newcode36 base/power_monitor/power_monitor_source.h:36: void ProcessPowerEvent(PowerEvent event_id); On 2013/06/26 22:37:22, bajones wrote: > ...
7 years, 6 months ago (2013-06-26 22:50:12 UTC) #11
bajones
https://codereview.chromium.org/17074009/diff/17001/content/common/gpu/client/gpu_channel_host.h File content/common/gpu/client/gpu_channel_host.h (right): https://codereview.chromium.org/17074009/diff/17001/content/common/gpu/client/gpu_channel_host.h#newcode252 content/common/gpu/client/gpu_channel_host.h:252: scoped_ptr<PowerMonitorMessageBroadcaster> power_monitor_broadcaster_; On 2013/06/26 22:50:12, vandebo wrote: > On ...
7 years, 6 months ago (2013-06-26 22:57:50 UTC) #12
Ken Russell (switch to Gerrit)
The direction of the refactoring looks good but it looks to me like more changes ...
7 years, 5 months ago (2013-06-27 13:08:23 UTC) #13
bajones
+apatrick on Ken's suggestion. If you could look this over for Browser/GPU IPC sanity I'd ...
7 years, 5 months ago (2013-07-01 20:21:58 UTC) #14
apatrick_chromium
The GpuProcessHost should generally only run on the IO thread. If you want an IPC::Sender ...
7 years, 5 months ago (2013-07-01 23:59:58 UTC) #15
Ken Russell (switch to Gerrit)
Very nice. LGTM https://codereview.chromium.org/17074009/diff/32001/base/power_monitor/power_monitor_ios.mm File base/power_monitor/power_monitor_ios.mm (right): https://codereview.chromium.org/17074009/diff/32001/base/power_monitor/power_monitor_ios.mm#newcode11 base/power_monitor/power_monitor_ios.mm:11: void PowerMonitorDeviceSource::PlatformInit() { This file should ...
7 years, 5 months ago (2013-07-02 09:05:15 UTC) #16
Ken Russell (switch to Gerrit)
On 2013/07/01 23:59:58, apatrick_chromium wrote: > The GpuProcessHost should generally only run on the IO ...
7 years, 5 months ago (2013-07-02 09:08:31 UTC) #17
bajones
On 2013/07/02 09:08:31, Ken Russell wrote: > On 2013/07/01 23:59:58, apatrick_chromium wrote: > > The ...
7 years, 5 months ago (2013-07-02 18:12:04 UTC) #18
apatrick_chromium
https://codereview.chromium.org/17074009/diff/46002/base/power_monitor/power_monitor.cc File base/power_monitor/power_monitor.cc (right): https://codereview.chromium.org/17074009/diff/46002/base/power_monitor/power_monitor.cc#newcode52 base/power_monitor/power_monitor.cc:52: void PowerMonitor::NotifyPowerStateChange(bool battery_in_use) { In the browser process, this ...
7 years, 5 months ago (2013-07-02 19:39:28 UTC) #19
bajones
https://codereview.chromium.org/17074009/diff/46002/base/power_monitor/power_monitor.cc File base/power_monitor/power_monitor.cc (right): https://codereview.chromium.org/17074009/diff/46002/base/power_monitor/power_monitor.cc#newcode52 base/power_monitor/power_monitor.cc:52: void PowerMonitor::NotifyPowerStateChange(bool battery_in_use) { On 2013/07/02 19:39:29, apatrick_chromium wrote: ...
7 years, 5 months ago (2013-07-02 20:35:26 UTC) #20
apatrick_chromium
Then you could make the MessageFilter have a MessageLoopProxy for the thread that the power ...
7 years, 5 months ago (2013-07-02 20:47:09 UTC) #21
vandebo (ex-Chrome)
https://codereview.chromium.org/17074009/diff/46002/base/power_monitor/power_monitor.cc File base/power_monitor/power_monitor.cc (right): https://codereview.chromium.org/17074009/diff/46002/base/power_monitor/power_monitor.cc#newcode13 base/power_monitor/power_monitor.cc:13: // This constructor is provided to preserve backwards compatibility ...
7 years, 5 months ago (2013-07-02 22:53:11 UTC) #22
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/17074009/diff/68001/content/common/power_monitor_broadcast_source.cc File content/common/power_monitor_broadcast_source.cc (right): https://codereview.chromium.org/17074009/diff/68001/content/common/power_monitor_broadcast_source.cc#newcode36 content/common/power_monitor_broadcast_source.cc:36: on_battery_power_ = on_battery_power; Is synchronization needed around this variable? ...
7 years, 5 months ago (2013-07-03 09:49:42 UTC) #23
bajones
Reverted the MessageLoopProxy use based on vandebo's comments. All other feedback has been addressed. https://codereview.chromium.org/17074009/diff/46002/base/power_monitor/power_monitor_device_source_android.cc ...
7 years, 5 months ago (2013-07-03 20:32:26 UTC) #24
bajones
Need LG on /base, /chrome/browser/extensions, /content, and /ipc. Darin, you cover all of that. Any ...
7 years, 5 months ago (2013-07-08 22:07:59 UTC) #25
apatrick_chromium
LGTM for my part with resolution of threading issues.
7 years, 5 months ago (2013-07-08 22:09:05 UTC) #26
bajones
On 2013/07/08 22:09:05, apatrick_chromium wrote: > LGTM for my part with resolution of threading issues. ...
7 years, 5 months ago (2013-07-08 22:15:23 UTC) #27
apatrick_chromium
On 2013/07/08 22:15:23, bajones wrote: > On 2013/07/08 22:09:05, apatrick_chromium wrote: > > LGTM for ...
7 years, 5 months ago (2013-07-08 22:41:26 UTC) #28
bajones
vandebo@: Do you have any further outstanding concerns? All: I need security reviews on ipc_message_start.h ...
7 years, 5 months ago (2013-07-09 17:39:09 UTC) #29
Matt Perry
LGTM extensions
7 years, 5 months ago (2013-07-09 19:41:37 UTC) #30
palmer
https://codereview.chromium.org/17074009/diff/106001/base/power_monitor/power_monitor.cc File base/power_monitor/power_monitor.cc (right): https://codereview.chromium.org/17074009/diff/106001/base/power_monitor/power_monitor.cc#newcode18 base/power_monitor/power_monitor.cc:18: // new PowerMonitorDeviceSource() Maybe this is the real fix, ...
7 years, 5 months ago (2013-07-09 21:16:09 UTC) #31
vandebo (ex-Chrome)
It's looking good. The several different levels of "OnBattery" and how that all works is ...
7 years, 5 months ago (2013-07-09 22:22:08 UTC) #32
bajones
Thanks palmer@. Working on addressing your feedback now, with a few comments below. https://codereview.chromium.org/17074009/diff/106001/base/power_monitor/power_monitor.cc File ...
7 years, 5 months ago (2013-07-09 22:27:59 UTC) #33
palmer
> If used on a non-browser process then they most likely won't get power events ...
7 years, 5 months ago (2013-07-10 21:21:56 UTC) #34
bajones
Feedback addressed, please take another look. FYI: I opted to go with vandebo's suggestion of ...
7 years, 5 months ago (2013-07-10 22:08:34 UTC) #35
vandebo (ex-Chrome)
https://codereview.chromium.org/17074009/diff/146001/base/power_monitor/power_monitor_source.cc File base/power_monitor/power_monitor_source.cc (right): https://codereview.chromium.org/17074009/diff/146001/base/power_monitor/power_monitor_source.cc#newcode36 base/power_monitor/power_monitor_source.cc:36: PowerMonitorSource* source = monitor->source_.get(); I think the preference is ...
7 years, 5 months ago (2013-07-10 22:37:33 UTC) #36
palmer
IPC security LGTM
7 years, 5 months ago (2013-07-10 22:40:38 UTC) #37
bajones
https://codereview.chromium.org/17074009/diff/146001/base/power_monitor/power_monitor_source.cc File base/power_monitor/power_monitor_source.cc (right): https://codereview.chromium.org/17074009/diff/146001/base/power_monitor/power_monitor_source.cc#newcode36 base/power_monitor/power_monitor_source.cc:36: PowerMonitorSource* source = monitor->source_.get(); On 2013/07/10 22:37:34, vandebo wrote: ...
7 years, 5 months ago (2013-07-10 22:44:38 UTC) #38
vandebo (ex-Chrome)
LGTM
7 years, 5 months ago (2013-07-10 22:49:37 UTC) #39
bajones
On 2013/07/10 22:49:37, vandebo wrote: > LGTM Thanks for slogging through this with me. :) ...
7 years, 5 months ago (2013-07-10 23:05:41 UTC) #40
bajones
Expanded the unit tests to cover the components in content and improve coverage of PowerMonitor ...
7 years, 5 months ago (2013-07-12 18:55:07 UTC) #41
bajones
Unit test linker issues resolved with some help from @kbr. Still need an owners LG ...
7 years, 5 months ago (2013-07-12 20:23:59 UTC) #42
piman
Some threading (potential or real) issues, and some nits https://codereview.chromium.org/17074009/diff/172001/base/power_monitor/power_monitor.h File base/power_monitor/power_monitor.h (right): https://codereview.chromium.org/17074009/diff/172001/base/power_monitor/power_monitor.h#newcode26 base/power_monitor/power_monitor.h:26: ...
7 years, 5 months ago (2013-07-12 21:09:57 UTC) #43
bajones
Still have a threading issue and some documentation to address. Pushed WIP so I don't ...
7 years, 5 months ago (2013-07-13 00:33:19 UTC) #44
piman
https://codereview.chromium.org/17074009/diff/172001/content/gpu/gpu_main.cc File content/gpu/gpu_main.cc (right): https://codereview.chromium.org/17074009/diff/172001/content/gpu/gpu_main.cc#newcode292 content/gpu/gpu_main.cc:292: child_thread->channel()->AddFilter(power_monitor_source->MessageFilter()); On 2013/07/13 00:33:20, bajones wrote: > On 2013/07/12 ...
7 years, 5 months ago (2013-07-13 00:44:40 UTC) #45
bajones
On 2013/07/13 00:44:40, piman wrote: > https://codereview.chromium.org/17074009/diff/172001/content/gpu/gpu_main.cc > File content/gpu/gpu_main.cc (right): > > https://codereview.chromium.org/17074009/diff/172001/content/gpu/gpu_main.cc#newcode292 > ...
7 years, 5 months ago (2013-07-15 20:31:10 UTC) #46
piman
Mostly nits at this point https://codereview.chromium.org/17074009/diff/172001/base/power_monitor/power_monitor_source.h File base/power_monitor/power_monitor_source.h (right): https://codereview.chromium.org/17074009/diff/172001/base/power_monitor/power_monitor_source.h#newcode56 base/power_monitor/power_monitor_source.h:56: Lock lock_; On 2013/07/13 ...
7 years, 5 months ago (2013-07-15 20:51:29 UTC) #47
bajones
Nits addressed https://codereview.chromium.org/17074009/diff/192001/base/power_monitor/power_monitor_source.h File base/power_monitor/power_monitor_source.h (right): https://codereview.chromium.org/17074009/diff/192001/base/power_monitor/power_monitor_source.h#newcode44 base/power_monitor/power_monitor_source.h:44: // the UI thread or, in child ...
7 years, 5 months ago (2013-07-15 22:27:17 UTC) #48
piman
LGTM for content/, thanks.
7 years, 5 months ago (2013-07-15 22:43:36 UTC) #49
bajones
On 2013/07/15 22:43:36, piman wrote: > LGTM for content/, thanks. Thank you! @jar, Additional unit ...
7 years, 5 months ago (2013-07-15 23:42:06 UTC) #50
jar (doing other things)
The refactor plus changes made the review more difficult... so I'm mostly depending on Vandebo's ...
7 years, 5 months ago (2013-07-16 17:15:32 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/17074009/195003
7 years, 5 months ago (2013-07-16 18:03:31 UTC) #52
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=60534
7 years, 5 months ago (2013-07-16 20:53:22 UTC) #53
jam
drive by. main points are that it seems the broadcaster is in the wrong directory, ...
7 years, 5 months ago (2013-07-17 00:29:41 UTC) #54
bajones
https://codereview.chromium.org/17074009/diff/195003/content/browser/gpu/gpu_process_host_ui_shim.cc File content/browser/gpu/gpu_process_host_ui_shim.cc (right): https://codereview.chromium.org/17074009/diff/195003/content/browser/gpu/gpu_process_host_ui_shim.cc#newcode110 content/browser/gpu/gpu_process_host_ui_shim.cc:110: power_monitor_broadcaster_.reset(new PowerMonitorMessageBroadcaster(this)); On 2013/07/17 00:29:42, jam wrote: > since ...
7 years, 5 months ago (2013-07-19 22:44:55 UTC) #55
jam
https://codereview.chromium.org/17074009/diff/195003/content/browser/gpu/gpu_process_host_ui_shim.cc File content/browser/gpu/gpu_process_host_ui_shim.cc (right): https://codereview.chromium.org/17074009/diff/195003/content/browser/gpu/gpu_process_host_ui_shim.cc#newcode110 content/browser/gpu/gpu_process_host_ui_shim.cc:110: power_monitor_broadcaster_.reset(new PowerMonitorMessageBroadcaster(this)); On 2013/07/19 22:44:56, bajones wrote: > On ...
7 years, 5 months ago (2013-07-20 00:28:54 UTC) #56
bajones
All the child processes are wired up now. @jam: I'd appreciate it if you could ...
7 years, 4 months ago (2013-07-29 20:54:34 UTC) #57
piman
https://codereview.chromium.org/17074009/diff/254001/content/browser/power_monitor_message_broadcaster.cc File content/browser/power_monitor_message_broadcaster.cc (right): https://codereview.chromium.org/17074009/diff/254001/content/browser/power_monitor_message_broadcaster.cc#newcode19 content/browser/power_monitor_message_broadcaster.cc:19: base::Unretained(this))); What prevents the filter from being destroyed before ...
7 years, 4 months ago (2013-07-29 21:18:17 UTC) #58
bajones
https://codereview.chromium.org/17074009/diff/254001/content/browser/power_monitor_message_broadcaster.cc File content/browser/power_monitor_message_broadcaster.cc (right): https://codereview.chromium.org/17074009/diff/254001/content/browser/power_monitor_message_broadcaster.cc#newcode33 content/browser/power_monitor_message_broadcaster.cc:33: base::Unretained(this))); On 2013/07/29 21:18:18, piman wrote: > What prevents ...
7 years, 4 months ago (2013-07-29 21:33:35 UTC) #59
piman
https://codereview.chromium.org/17074009/diff/254001/content/browser/power_monitor_message_broadcaster.cc File content/browser/power_monitor_message_broadcaster.cc (right): https://codereview.chromium.org/17074009/diff/254001/content/browser/power_monitor_message_broadcaster.cc#newcode33 content/browser/power_monitor_message_broadcaster.cc:33: base::Unretained(this))); On 2013/07/29 21:33:36, bajones wrote: > On 2013/07/29 ...
7 years, 4 months ago (2013-07-29 21:40:49 UTC) #60
bajones
On 2013/07/29 21:40:49, piman wrote: > https://codereview.chromium.org/17074009/diff/254001/content/browser/power_monitor_message_broadcaster.cc > File content/browser/power_monitor_message_broadcaster.cc (right): > > https://codereview.chromium.org/17074009/diff/254001/content/browser/power_monitor_message_broadcaster.cc#newcode33 > ...
7 years, 4 months ago (2013-07-29 23:31:38 UTC) #61
bajones
Talked with @kbr about it this morning and I think the threading concerns should now ...
7 years, 4 months ago (2013-07-30 17:27:27 UTC) #62
piman
https://codereview.chromium.org/17074009/diff/263001/content/browser/power_monitor_message_filter.cc File content/browser/power_monitor_message_filter.cc (right): https://codereview.chromium.org/17074009/diff/263001/content/browser/power_monitor_message_filter.cc#newcode26 content/browser/power_monitor_message_filter.cc:26: if (broadcaster_) This is on the IO thread, it ...
7 years, 4 months ago (2013-07-30 19:38:48 UTC) #63
bajones
Talked with @piman and @jam offline to clarify a couple of points. New code is ...
7 years, 4 months ago (2013-07-30 21:45:08 UTC) #64
piman
lgtm
7 years, 4 months ago (2013-07-30 21:55:51 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/17074009/280001
7 years, 4 months ago (2013-07-30 22:01:59 UTC) #66
bajones
So it turns out that after the most recent set of changes I need one ...
7 years, 4 months ago (2013-07-30 23:41:08 UTC) #67
jam
https://codereview.chromium.org/17074009/diff/280001/content/browser/power_monitor_message_broadcaster.h File content/browser/power_monitor_message_broadcaster.h (right): https://codereview.chromium.org/17074009/diff/280001/content/browser/power_monitor_message_broadcaster.h#newcode17 content/browser/power_monitor_message_broadcaster.h:17: class Sender; nit: no need, since you're including browser_message_filter ...
7 years, 4 months ago (2013-07-30 23:51:59 UTC) #68
scottmg
https://codereview.chromium.org/17074009/diff/280001/content/child/power_monitor_broadcast_source.h File content/child/power_monitor_broadcast_source.h (right): https://codereview.chromium.org/17074009/diff/280001/content/child/power_monitor_broadcast_source.h#newcode5 content/child/power_monitor_broadcast_source.h:5: #ifndef CONTENT_COMMON_POWER_MONITOR_BROADCAST_SOURCE_H_ nit; header guard CONTENT_CHILD_...
7 years, 4 months ago (2013-07-30 23:52:53 UTC) #69
bajones
Nits addressed
7 years, 4 months ago (2013-07-31 00:19:21 UTC) #70
jam
https://codereview.chromium.org/17074009/diff/295001/content/child/child_thread.cc File content/child/child_thread.cc (right): https://codereview.chromium.org/17074009/diff/295001/content/child/child_thread.cc#newcode160 content/child/child_thread.cc:160: new PowerMonitorBroadcastSource(message_loop_->message_loop_proxy())); nit: no need to pass message_loop_ here, ...
7 years, 4 months ago (2013-07-31 17:27:16 UTC) #71
bajones
On 2013/07/31 17:27:16, jam wrote: > https://codereview.chromium.org/17074009/diff/295001/content/child/child_thread.cc > File content/child/child_thread.cc (right): > > https://codereview.chromium.org/17074009/diff/295001/content/child/child_thread.cc#newcode160 > ...
7 years, 4 months ago (2013-07-31 19:17:06 UTC) #72
jam
lgtm
7 years, 4 months ago (2013-07-31 21:01:36 UTC) #73
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/17074009/311001
7 years, 4 months ago (2013-07-31 21:22:50 UTC) #74
commit-bot: I haz the power
Failed to apply patch for chrome/nacl/nacl_main.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
7 years, 4 months ago (2013-07-31 21:23:18 UTC) #75
jvoung (off chromium)
https://codereview.chromium.org/17074009/diff/311001/chrome/nacl/nacl_main.cc File chrome/nacl/nacl_main.cc (left): https://codereview.chromium.org/17074009/diff/311001/chrome/nacl/nacl_main.cc#oldcode29 chrome/nacl/nacl_main.cc:29: Note that nacl_main got moved to components, I think. ...
7 years, 4 months ago (2013-07-31 21:24:38 UTC) #76
bajones
On 2013/07/31 21:24:38, jvoung (cr) wrote: > https://codereview.chromium.org/17074009/diff/311001/chrome/nacl/nacl_main.cc > File chrome/nacl/nacl_main.cc (left): > > https://codereview.chromium.org/17074009/diff/311001/chrome/nacl/nacl_main.cc#oldcode29 ...
7 years, 4 months ago (2013-07-31 21:26:33 UTC) #77
jvoung (off chromium)
On 2013/07/31 21:26:33, bajones wrote: > On 2013/07/31 21:24:38, jvoung (cr) wrote: > > https://codereview.chromium.org/17074009/diff/311001/chrome/nacl/nacl_main.cc ...
7 years, 4 months ago (2013-07-31 21:31:33 UTC) #78
vandebo (ex-Chrome)
On 2013/07/31 21:26:33, bajones wrote: > On 2013/07/31 21:24:38, jvoung (cr) wrote: > > https://codereview.chromium.org/17074009/diff/311001/chrome/nacl/nacl_main.cc ...
7 years, 4 months ago (2013-07-31 21:44:38 UTC) #79
bajones
On 2013/07/31 21:44:38, vandebo wrote: > On 2013/07/31 21:26:33, bajones wrote: > > On 2013/07/31 ...
7 years, 4 months ago (2013-07-31 21:55:07 UTC) #80
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/17074009/321001
7 years, 4 months ago (2013-07-31 21:59:53 UTC) #81
commit-bot: I haz the power
Failed to trigger a try job on win_x64_rel HTTP Error 400: Bad Request
7 years, 4 months ago (2013-07-31 22:37:08 UTC) #82
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/17074009/339002
7 years, 4 months ago (2013-08-01 00:00:51 UTC) #83
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=65844
7 years, 4 months ago (2013-08-01 02:35:59 UTC) #84
piman
https://codereview.chromium.org/17074009/diff/295001/content/child/power_monitor_broadcast_source.cc File content/child/power_monitor_broadcast_source.cc (right): https://codereview.chromium.org/17074009/diff/295001/content/child/power_monitor_broadcast_source.cc#newcode39 content/child/power_monitor_broadcast_source.cc:39: on_battery_power)); On 2013/07/31 17:27:17, jam wrote: > I didn't ...
7 years, 4 months ago (2013-08-01 18:40:54 UTC) #85
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/17074009/363001
7 years, 4 months ago (2013-08-02 20:14:11 UTC) #86
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) remoting_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=155679
7 years, 4 months ago (2013-08-02 21:18:44 UTC) #87
bajones
7 years, 4 months ago (2013-08-02 22:09:32 UTC) #88
Message was sent while issue was closed.
Committed patchset #27 manually as r215381 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698