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

Issue 10959020: SystemMonitor refactoring: move power state monitor into a separate class called PowerMonitor (Closed)

Created:
8 years, 3 months ago by Hongbo Min
Modified:
7 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, chromium-apps-reviews_chromium.org, tfarina, jam, joi+watch-content_chromium.org, Aaron Boodman, rginda+watch_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, willchan no longer on Chromium, Ben Goodger (Google)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Split the power monitoring feature from SystemMonitor The SystemMonitor is a mixed monitor which not only monitors the power state changes but also the devices changes. This patch is to separate the power monitor from SystemMonitor as a new class PowerMonitor which is dedicated to monitor power state. The next step is to seek a opportunity to refactor SystemMonitor as something like DeviceMonitor. BUG=149059 TEST=base_unittests --gtest_filter=PowerMonitorTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192114

Patch Set 1 : #

Total comments: 1

Patch Set 2 : Renaming power_state_monitor #

Patch Set 3 : make HWNDMessageHandler as a friend class of PowerMonitor #

Total comments: 34

Patch Set 4 : Update patch per vandebo's comments #

Total comments: 19

Patch Set 5 : #

Total comments: 14

Patch Set 6 : Call AllocateSystemIOPorts before PowerMonitor's ctor #

Total comments: 12

Patch Set 7 : Rebase code #

Patch Set 8 : add power notifier #

Total comments: 8

Patch Set 9 : rebase to trunk #

Patch Set 10 : rename Notifier to Signaler #

Patch Set 11 : Revert using Singleton pattern for PowerMonitor #

Total comments: 41

Patch Set 12 : update #

Total comments: 32

Patch Set 13 : update #

Total comments: 7

Patch Set 14 : Add PlatformInit/Destory for all platforms #

Total comments: 11

Patch Set 15 : update #

Total comments: 1

Patch Set 16 : update #

Total comments: 6

Patch Set 17 : update per willchan's comment #

Total comments: 2

Patch Set 18 : Rebase code to trunk #

Patch Set 19 : Process power event in BrowserFrameWin instead of HWNDMessageHandler #

Patch Set 20 : rebase to trunk #

Patch Set 21 : Fix compiler error #

Patch Set 22 : Remove AllocateSystemIOPort from unit test #

Patch Set 23 : Rebase to trunk #

Patch Set 24 : add power message window and remove GetSignalerOnce #

Patch Set 25 : Rebase to trunk #

Patch Set 26 : Use PowerMonitor instead of SystemMonitor in XXXMain function #

Total comments: 41

Patch Set 27 : modify per 1st round review #

Total comments: 1

Patch Set 28 : fix 2 nits per vandebo's comments #

Patch Set 29 : rebase to trunk #

Patch Set 30 : add known bugs for android #

Patch Set 31 : Use holder class for lazy initialization on Android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -1062 lines) Patch
M base/android/base_jni_registrar.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 +2 lines, -2 lines 0 comments Download
A + base/android/java/src/org/chromium/base/PowerMonitor.java 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 27 28 29 30 3 chunks +9 lines, -6 lines 0 comments Download
M base/android/java/src/org/chromium/base/PowerStatusReceiver.java 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, -2 lines 0 comments Download
D base/android/java/src/org/chromium/base/SystemMonitor.java 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 +0 lines, -89 lines 0 comments Download
M base/base.gyp 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 27 28 2 chunks +2 lines, -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 19 20 21 22 23 24 25 26 27 28 3 chunks +10 lines, -7 lines 0 comments Download
M base/hi_res_timer_manager.h View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M base/hi_res_timer_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -3 lines 0 comments Download
M base/hi_res_timer_manager_win.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -4 lines 0 comments Download
A + 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 19 20 21 22 23 24 25 26 27 5 chunks +42 lines, -107 lines 0 comments Download
A + 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 19 20 21 22 23 24 25 26 3 chunks +30 lines, -55 lines 0 comments Download
A + base/power_monitor/power_monitor_android.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 1 chunk +5 lines, -6 lines 0 comments Download
A + base/power_monitor/power_monitor_android.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 +16 lines, -10 lines 0 comments Download
A + base/power_monitor/power_monitor_ios.mm 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 1 chunk +6 lines, -6 lines 0 comments Download
A + base/power_monitor/power_monitor_mac.mm 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 5 chunks +14 lines, -11 lines 0 comments Download
A + base/power_monitor/power_monitor_posix.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 1 chunk +3 lines, -3 lines 0 comments Download
A + 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 18 19 20 21 22 23 24 2 chunks +29 lines, -53 lines 0 comments Download
A + base/power_monitor/power_monitor_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 6 chunks +16 lines, -16 lines 0 comments Download
A + base/power_monitor/power_observer.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 1 chunk +16 lines, -10 lines 0 comments Download
M base/system_monitor/system_monitor.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 4 chunks +2 lines, -138 lines 0 comments Download
M base/system_monitor/system_monitor.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 3 chunks +2 lines, -81 lines 0 comments Download
D base/system_monitor/system_monitor_android.h View 1 2 3 4 5 6 1 chunk +0 lines, -17 lines 0 comments Download
D base/system_monitor/system_monitor_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -36 lines 0 comments Download
D base/system_monitor/system_monitor_ios.mm View 1 chunk +0 lines, -40 lines 0 comments Download
D base/system_monitor/system_monitor_mac.mm View 1 chunk +0 lines, -98 lines 0 comments Download
D base/system_monitor/system_monitor_posix.cc View 1 chunk +0 lines, -14 lines 0 comments Download
M base/system_monitor/system_monitor_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 2 chunks +0 lines, -76 lines 0 comments Download
D base/system_monitor/system_monitor_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 1 chunk +0 lines, -111 lines 0 comments Download
M build/android/findbugs_filter/findbugs_known_bugs.txt 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 27 28 29 30 1 chunk +0 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 19 20 21 22 23 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_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 26 3 chunks +0 lines, -7 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 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/nacl/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 2 chunks +2 lines, -2 lines 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 19 20 21 22 23 24 25 26 27 28 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/browser_main_loop.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 27 28 2 chunks +2 lines, -0 lines 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 27 28 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/gamepad/gamepad_test_helpers.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +0 lines, -6 lines 0 comments Download
M content/browser/gamepad/gamepad_test_helpers.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -5 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 2 chunks +2 lines, -2 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 19 20 21 22 23 24 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 2 chunks +2 lines, -2 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 2 chunks +2 lines, -2 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 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_network_layer.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 27 28 3 chunks +3 lines, -3 lines 0 comments Download
M net/url_request/url_request_job.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 27 28 3 chunks +6 lines, -4 lines 0 comments Download
M net/url_request/url_request_job.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 27 28 3 chunks +7 lines, -6 lines 0 comments Download
M testing/android/java/src/org/chromium/native_test/ChromeNativeTestActivity.java 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, -2 lines 0 comments Download
M webkit/blob/blob_url_request_job.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 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 126 (0 generated)
Hongbo Min
I try to make power state management as a separate class and move it out ...
8 years, 3 months ago (2012-09-20 16:18:31 UTC) #1
Hongbo Min
Any review comments?
8 years, 3 months ago (2012-09-20 23:54:03 UTC) #2
vandebo (ex-Chrome)
I suspect that the system monitor files where in a subdirectory because they are somewhat ...
8 years, 3 months ago (2012-09-21 20:12:18 UTC) #3
Hongbo Min
On 2012/09/21 20:12:18, vandebo wrote: > I suspect that the system monitor files where in ...
8 years, 3 months ago (2012-09-22 01:01:29 UTC) #4
vandebo (ex-Chrome)
On 2012/09/22 01:01:29, Hongbo Min wrote: > On 2012/09/21 20:12:18, vandebo wrote: > > I ...
8 years, 2 months ago (2012-10-09 22:23:35 UTC) #5
Hongbo Min
I will update the CL soon. Thanks for your information.
8 years, 2 months ago (2012-10-10 11:42:02 UTC) #6
Hongbo Min
The patch is updated. Pls have a review again.
8 years, 2 months ago (2012-10-10 23:17:48 UTC) #7
vandebo (ex-Chrome)
https://codereview.chromium.org/10959020/diff/12002/base/hi_res_timer_manager_unittest.cc File base/hi_res_timer_manager_unittest.cc (right): https://codereview.chromium.org/10959020/diff/12002/base/hi_res_timer_manager_unittest.cc#newcode16 base/hi_res_timer_manager_unittest.cc:16: scoped_ptr<base::PowerMonitor> system_monitor( system_monitor -> power_monitor https://codereview.chromium.org/10959020/diff/12002/base/hi_res_timer_manager_win.cc File base/hi_res_timer_manager_win.cc (right): ...
8 years, 2 months ago (2012-10-11 00:58:43 UTC) #8
Hongbo Min
http://codereview.chromium.org/10959020/diff/12002/base/hi_res_timer_manager_unittest.cc File base/hi_res_timer_manager_unittest.cc (right): http://codereview.chromium.org/10959020/diff/12002/base/hi_res_timer_manager_unittest.cc#newcode16 base/hi_res_timer_manager_unittest.cc:16: scoped_ptr<base::PowerMonitor> system_monitor( On 2012/10/11 00:58:43, vandebo wrote: > system_monitor ...
8 years, 2 months ago (2012-10-11 07:57:53 UTC) #9
Hongbo Min
Hi, vandebo The current PowerMonitor implementation is now a singleton instance using base/memory/singleton.h instead of ...
8 years, 2 months ago (2012-10-11 12:34:07 UTC) #10
jam
Which parts did you want me to review? Regarding this statement in the description: "Since ...
8 years, 2 months ago (2012-10-11 15:38:19 UTC) #11
vandebo (ex-Chrome)
On 2012/10/11 15:38:19, John Abd-El-Malek wrote: > Which parts did you want me to review? ...
8 years, 2 months ago (2012-10-11 20:49:56 UTC) #12
Hongbo Min
On 2012/10/11 20:49:56, vandebo wrote: > On 2012/10/11 15:38:19, John Abd-El-Malek wrote: > > Which ...
8 years, 2 months ago (2012-10-11 23:53:59 UTC) #13
Hongbo Min
vandebo, Does it make more sense to define PowerObserver in a separate class file? It ...
8 years, 2 months ago (2012-10-12 00:01:03 UTC) #14
vandebo (ex-Chrome)
On 2012/10/12 00:01:03, Hongbo Min wrote: > vandebo, > > Does it make more sense ...
8 years, 2 months ago (2012-10-12 00:15:51 UTC) #15
Hongbo Min
The patch is updated. Thank for the trybots result, it exposes lot of underlying issues ...
8 years, 2 months ago (2012-10-12 14:43:53 UTC) #16
jam
content & chrome lgtm
8 years, 2 months ago (2012-10-12 17:55:13 UTC) #17
willchan no longer on Chromium
base/ is mostly fine with me, although my one nit is the new power_monitor.cc test ...
8 years, 2 months ago (2012-10-12 18:11:59 UTC) #18
willchan no longer on Chromium
https://codereview.chromium.org/10959020/diff/41042/base/power_monitor/power_monitor_mac.mm File base/power_monitor/power_monitor_mac.mm (right): https://codereview.chromium.org/10959020/diff/41042/base/power_monitor/power_monitor_mac.mm#newcode69 base/power_monitor/power_monitor_mac.mm:69: return; This makes me minorly nervous, especially now that ...
8 years, 2 months ago (2012-10-12 18:17:15 UTC) #19
vandebo (ex-Chrome)
https://codereview.chromium.org/10959020/diff/19096/base/power_monitor/power_monitor.h File base/power_monitor/power_monitor.h (right): https://codereview.chromium.org/10959020/diff/19096/base/power_monitor/power_monitor.h#newcode132 base/power_monitor/power_monitor.h:132: scoped_refptr<ObserverListThreadSafe<PowerObserver> > observers_; On 2012/10/12 14:43:53, Hongbo Min wrote: ...
8 years, 2 months ago (2012-10-12 22:12:30 UTC) #20
Hongbo Min
On 2012/10/12 18:11:59, willchan wrote: > base/ is mostly fine with me, although my one ...
8 years, 2 months ago (2012-10-13 00:03:11 UTC) #21
Hongbo Min
On 2012/10/12 22:12:30, vandebo wrote: > https://codereview.chromium.org/10959020/diff/19096/base/power_monitor/power_monitor.h > File base/power_monitor/power_monitor.h (right): > > https://codereview.chromium.org/10959020/diff/19096/base/power_monitor/power_monitor.h#newcode132 > ...
8 years, 2 months ago (2012-10-13 00:09:12 UTC) #22
Hongbo Min
https://codereview.chromium.org/10959020/diff/41042/base/power_monitor/power_monitor.h File base/power_monitor/power_monitor.h (right): https://codereview.chromium.org/10959020/diff/41042/base/power_monitor/power_monitor.h#newcode72 base/power_monitor/power_monitor.h:72: friend struct DefaultSingletonTraits<PowerMonitor>; On 2012/10/12 22:12:30, vandebo wrote: > ...
8 years, 2 months ago (2012-10-13 06:36:07 UTC) #23
Hongbo Min
https://codereview.chromium.org/10959020/diff/41042/base/power_monitor/power_monitor_mac.mm File base/power_monitor/power_monitor_mac.mm (right): https://codereview.chromium.org/10959020/diff/41042/base/power_monitor/power_monitor_mac.mm#newcode69 base/power_monitor/power_monitor_mac.mm:69: return; On 2012/10/13 06:36:07, Hongbo Min wrote: > On ...
8 years, 2 months ago (2012-10-13 08:22:15 UTC) #24
vandebo (ex-Chrome)
https://codereview.chromium.org/10959020/diff/41042/base/power_monitor/power_monitor_mac.mm File base/power_monitor/power_monitor_mac.mm (right): https://codereview.chromium.org/10959020/diff/41042/base/power_monitor/power_monitor_mac.mm#newcode69 base/power_monitor/power_monitor_mac.mm:69: return; On 2012/10/13 08:22:15, Hongbo Min wrote: > On ...
8 years, 2 months ago (2012-10-15 23:41:25 UTC) #25
Hongbo Min
vandebo, The updated patch is mainly for the change brought by using CHECK_NE instead of ...
8 years, 2 months ago (2012-10-16 13:43:31 UTC) #26
Hongbo Min
http://codereview.chromium.org/10959020/diff/68050/base/power_monitor/power_monitor_mac.mm File base/power_monitor/power_monitor_mac.mm (right): http://codereview.chromium.org/10959020/diff/68050/base/power_monitor/power_monitor_mac.mm#newcode53 base/power_monitor/power_monitor_mac.mm:53: if (g_system_power_io_port != 0u) Here I removed the DCHECK_EQ ...
8 years, 2 months ago (2012-10-16 13:53:52 UTC) #27
Hongbo Min
http://codereview.chromium.org/10959020/diff/68051/base/power_monitor/power_monitor_mac.mm File base/power_monitor/power_monitor_mac.mm (right): http://codereview.chromium.org/10959020/diff/68051/base/power_monitor/power_monitor_mac.mm#newcode53 base/power_monitor/power_monitor_mac.mm:53: if (g_system_power_io_port != 0u) base/power_monitor/power_monitor_mac.mm:53: if (g_system_power_io_port != 0u) ...
8 years, 2 months ago (2012-10-16 14:14:40 UTC) #28
vandebo (ex-Chrome)
There are some conflicting changes in 162124. I thought it was committed last week, but ...
8 years, 2 months ago (2012-10-16 18:50:16 UTC) #29
willchan no longer on Chromium
Let's fix the layering violation. If you need a test API, please explicitly add it. ...
8 years, 2 months ago (2012-10-16 20:32:37 UTC) #30
vandebo (ex-Chrome)
http://codereview.chromium.org/10959020/diff/68051/base/power_monitor/power_monitor.h File base/power_monitor/power_monitor.h (right): http://codereview.chromium.org/10959020/diff/68051/base/power_monitor/power_monitor.h#newcode30 base/power_monitor/power_monitor.h:30: namespace views { On 2012/10/16 20:32:37, willchan wrote: > ...
8 years, 2 months ago (2012-10-16 23:55:08 UTC) #31
Hongbo Min
On 2012/10/16 23:55:08, vandebo wrote: > http://codereview.chromium.org/10959020/diff/68051/base/power_monitor/power_monitor.h > File base/power_monitor/power_monitor.h (right): > > http://codereview.chromium.org/10959020/diff/68051/base/power_monitor/power_monitor.h#newcode30 > ...
8 years, 2 months ago (2012-10-17 00:23:21 UTC) #32
Hongbo Min
On 2012/10/16 20:32:37, willchan wrote: > Let's fix the layering violation. If you need a ...
8 years, 2 months ago (2012-10-17 08:11:06 UTC) #33
willchan no longer on Chromium
How about we take the easy way out and use UNIT_TEST defines to expose a ...
8 years, 2 months ago (2012-10-17 16:59:46 UTC) #34
vandebo (ex-Chrome)
On 2012/10/17 16:59:46, willchan wrote: > How about we take the easy way out and ...
8 years, 2 months ago (2012-10-17 17:31:01 UTC) #35
willchan no longer on Chromium
Oh fascinating! I see, thanks for pointing that out. I see...so views *also* needs to ...
8 years, 2 months ago (2012-10-17 18:59:26 UTC) #36
willchan no longer on Chromium
Oh, and my naming sucks, so feel free to rename anything I said. On Wed, ...
8 years, 2 months ago (2012-10-17 18:59:49 UTC) #37
vandebo (ex-Chrome)
On 2012/10/17 18:59:26, willchan wrote: > Oh fascinating! I see, thanks for pointing that out. ...
8 years, 2 months ago (2012-10-17 20:09:13 UTC) #38
willchan no longer on Chromium
Yep. On Wed, Oct 17, 2012 at 1:09 PM, <vandebo@chromium.org> wrote: > On 2012/10/17 18:59:26, ...
8 years, 2 months ago (2012-10-17 20:16:04 UTC) #39
Hongbo Min
On 2012/10/17 20:09:13, vandebo wrote: > On 2012/10/17 18:59:26, willchan wrote: > > Oh fascinating! ...
8 years, 2 months ago (2012-10-17 23:29:43 UTC) #40
Hongbo Min
On 2012/10/17 20:09:13, vandebo wrote: > On 2012/10/17 18:59:26, willchan wrote: > > Oh fascinating! ...
8 years, 2 months ago (2012-10-17 23:31:37 UTC) #41
vandebo (ex-Chrome)
On 2012/10/17 23:31:37, Hongbo Min wrote: > On 2012/10/17 20:09:13, vandebo wrote: > > On ...
8 years, 2 months ago (2012-10-18 01:18:34 UTC) #42
Hongbo Min
On 2012/10/18 01:18:34, vandebo wrote: > On 2012/10/17 23:31:37, Hongbo Min wrote: > > On ...
8 years, 2 months ago (2012-10-18 02:05:37 UTC) #43
willchan no longer on Chromium
SG. It means we have to leak it, but that's fine. Maybe sure to leak ...
8 years, 2 months ago (2012-10-18 02:06:06 UTC) #44
Hongbo Min
> > class PowerMonitorNotifier { > > public: > > ProcessPowerEvent(args) { > > power_monitor_->ProcessPowerEvent(args); ...
8 years, 2 months ago (2012-10-18 12:18:27 UTC) #45
willchan no longer on Chromium
I don't really want anyone anywhere in the code to be able to generate power ...
8 years, 2 months ago (2012-10-18 17:25:09 UTC) #46
vandebo (ex-Chrome)
On 2012/10/18 02:05:37, Hongbo Min wrote: > On 2012/10/18 01:18:34, vandebo wrote: > > Will, ...
8 years, 2 months ago (2012-10-18 18:55:41 UTC) #47
Hongbo Min
On 2012/10/18 18:55:41, vandebo wrote: > On 2012/10/18 02:05:37, Hongbo Min wrote: > > On ...
8 years, 2 months ago (2012-10-19 03:44:43 UTC) #48
Hongbo Min
Add PowerMonitor::Notifier class proposed by vandebo. Pls have a review again. Seems sync_unit_tests fails too ...
8 years, 2 months ago (2012-10-21 09:56:03 UTC) #49
Hongbo Min
On 2012/10/21 09:56:03, Hongbo Min wrote: > Add PowerMonitor::Notifier class proposed by vandebo. Pls have ...
8 years, 2 months ago (2012-10-23 00:16:43 UTC) #50
vandebo (ex-Chrome)
On 2012/10/21 09:56:03, Hongbo Min wrote: > Seems sync_unit_tests fails too often due to timeout. ...
8 years, 2 months ago (2012-10-23 01:27:57 UTC) #51
Hongbo Min
On 2012/10/23 01:27:57, vandebo wrote: > On 2012/10/21 09:56:03, Hongbo Min wrote: > > Seems ...
8 years, 2 months ago (2012-10-23 01:55:01 UTC) #52
vandebo (ex-Chrome)
On 2012/10/23 01:55:01, Hongbo Min wrote: > On 2012/10/23 01:27:57, vandebo wrote: > > On ...
8 years, 2 months ago (2012-10-23 02:40:43 UTC) #53
Hongbo Min
On 2012/10/23 01:27:57, vandebo wrote: > http://codereview.chromium.org/10959020/diff/95046/base/power_monitor/power_monitor.h#newcode49 > base/power_monitor/power_monitor.h:49: class BASE_EXPORT Notifier { > Notifier ...
8 years, 2 months ago (2012-10-23 15:11:14 UTC) #54
vandebo (ex-Chrome)
On 2012/10/23 15:11:14, Hongbo Min wrote: > On 2012/10/23 01:27:57, vandebo wrote: > > > ...
8 years, 2 months ago (2012-10-23 17:53:04 UTC) #55
Hongbo Min
On 2012/10/23 17:53:04, vandebo wrote: > On 2012/10/23 15:11:14, Hongbo Min wrote: > > On ...
8 years, 2 months ago (2012-10-23 23:43:55 UTC) #56
Hongbo Min
vandebo, I have figured out why the sync_unit_tests always fails. It is caused by the ...
8 years, 2 months ago (2012-10-24 07:49:17 UTC) #57
vandebo (ex-Chrome)
On 2012/10/24 07:49:17, Hongbo Min wrote: > vandebo, I have figured out why the sync_unit_tests ...
8 years, 2 months ago (2012-10-24 16:22:49 UTC) #58
Hongbo Min
vandebo, I revert using singleton pattern for PowerMonitor. Pls review it again. Thanks.
8 years, 1 month ago (2012-10-29 09:14:10 UTC) #59
vandebo (ex-Chrome)
http://codereview.chromium.org/10959020/diff/134004/base/hi_res_timer_manager_unittest.cc File base/hi_res_timer_manager_unittest.cc (left): http://codereview.chromium.org/10959020/diff/134004/base/hi_res_timer_manager_unittest.cc#oldcode16 base/hi_res_timer_manager_unittest.cc:16: scoped_ptr<base::SystemMonitor> system_monitor(new base::SystemMonitor()); HighResolutionTimerManager::HighResolutionTimerManager uses PowerMonitor without checking for ...
8 years, 1 month ago (2012-10-29 18:04:38 UTC) #60
Hongbo Min
vandebo, thanks for your careful review. I have updated patch, and now they are built ...
8 years, 1 month ago (2012-10-30 14:33:46 UTC) #61
vandebo (ex-Chrome)
Getting there. Mostly nits. http://codereview.chromium.org/10959020/diff/134004/base/power_monitor/power_monitor_mac.mm File base/power_monitor/power_monitor_mac.mm (right): http://codereview.chromium.org/10959020/diff/134004/base/power_monitor/power_monitor_mac.mm#newcode76 base/power_monitor/power_monitor_mac.mm:76: void PowerMonitor::PlatformDestroy() { On 2012/10/30 ...
8 years, 1 month ago (2012-10-30 20:41:23 UTC) #62
Hongbo Min
http://codereview.chromium.org/10959020/diff/134012/base/power_monitor/power_monitor.cc File base/power_monitor/power_monitor.cc (right): http://codereview.chromium.org/10959020/diff/134012/base/power_monitor/power_monitor.cc#newcode1 base/power_monitor/power_monitor.cc:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
8 years, 1 month ago (2012-10-31 12:52:50 UTC) #63
Hongbo Min
http://codereview.chromium.org/10959020/diff/152087/base/power_monitor/power_monitor_mac.mm File base/power_monitor/power_monitor_mac.mm (right): http://codereview.chromium.org/10959020/diff/152087/base/power_monitor/power_monitor_mac.mm#newcode28 base/power_monitor/power_monitor_mac.mm:28: if (!g_power_signaler) g_power_signaler gets initialized here instead of PlatformInit ...
8 years, 1 month ago (2012-10-31 13:11:38 UTC) #64
vandebo (ex-Chrome)
http://codereview.chromium.org/10959020/diff/134012/net/url_request/url_request_job.h File net/url_request/url_request_job.h (right): http://codereview.chromium.org/10959020/diff/134012/net/url_request/url_request_job.h#newcode8 net/url_request/url_request_job.h:8: #include <map> On 2012/10/31 12:52:50, Hongbo Min wrote: > ...
8 years, 1 month ago (2012-10-31 17:30:34 UTC) #65
Hongbo Min
http://codereview.chromium.org/10959020/diff/152087/base/power_monitor/power_monitor.h File base/power_monitor/power_monitor.h (right): http://codereview.chromium.org/10959020/diff/152087/base/power_monitor/power_monitor.h#newcode141 base/power_monitor/power_monitor.h:141: bool is_signaler_available_; On 2012/10/31 17:30:34, vandebo wrote: > The ...
8 years, 1 month ago (2012-11-01 09:26:23 UTC) #66
Hongbo Min
http://codereview.chromium.org/10959020/diff/134012/ui/views/win/hwnd_message_handler.cc File ui/views/win/hwnd_message_handler.cc (right): http://codereview.chromium.org/10959020/diff/134012/ui/views/win/hwnd_message_handler.cc#newcode1856 ui/views/win/hwnd_message_handler.cc:1856: CHECK(!g_power_signaler); On 2012/10/31 17:30:34, vandebo wrote: > On 2012/10/30 ...
8 years, 1 month ago (2012-11-01 09:26:57 UTC) #67
vandebo (ex-Chrome)
Will, there are a few minor issues noted below, but I'm about ready to sign ...
8 years, 1 month ago (2012-11-01 16:50:26 UTC) #68
Hongbo Min
http://codereview.chromium.org/10959020/diff/145218/base/power_monitor/power_monitor.cc File base/power_monitor/power_monitor.cc (right): http://codereview.chromium.org/10959020/diff/145218/base/power_monitor/power_monitor.cc#newcode21 base/power_monitor/power_monitor.cc:21: signaler_available_(false) { On 2012/11/01 16:50:26, vandebo wrote: > This ...
8 years, 1 month ago (2012-11-02 00:29:07 UTC) #69
vandebo (ex-Chrome)
LGTM with nit. You now need OWNERS approval http://codereview.chromium.org/10959020/diff/153091/base/power_monitor/power_monitor_unittest.cc File base/power_monitor/power_monitor_unittest.cc (right): http://codereview.chromium.org/10959020/diff/153091/base/power_monitor/power_monitor_unittest.cc#newcode112 base/power_monitor/power_monitor_unittest.cc:112: EXPECT_TRUE(NULL ...
8 years, 1 month ago (2012-11-02 00:52:09 UTC) #70
willchan no longer on Chromium
Sorry, I had this sitting in my browser all day. I'll try to get to ...
8 years, 1 month ago (2012-11-02 00:57:58 UTC) #71
willchan no longer on Chromium
LGTM, thanks for the changes. Thanks Steve for doing the primary review here. http://codereview.chromium.org/10959020/diff/152096/base/power_monitor/power_monitor.cc File ...
8 years, 1 month ago (2012-11-02 21:35:27 UTC) #72
Hongbo Min
http://codereview.chromium.org/10959020/diff/152096/base/power_monitor/power_monitor.cc File base/power_monitor/power_monitor.cc (right): http://codereview.chromium.org/10959020/diff/152096/base/power_monitor/power_monitor.cc#newcode51 base/power_monitor/power_monitor.cc:51: if (signaler_available_) { On 2012/11/02 21:35:27, willchan wrote: > ...
8 years, 1 month ago (2012-11-05 09:36:42 UTC) #73
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/10959020/153145
8 years, 1 month ago (2012-11-05 09:37:36 UTC) #74
commit-bot: I haz the power
Presubmit check for 10959020-153145 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 1 month ago (2012-11-05 09:38:05 UTC) #75
Hongbo Min
On 2012/11/05 09:38:05, I haz the power (commit-bot) wrote: > Presubmit check for 10959020-153145 failed ...
8 years, 1 month ago (2012-11-05 10:14:58 UTC) #76
Ben Goodger (Google)
http://codereview.chromium.org/10959020/diff/153145/ui/views/win/hwnd_message_handler.cc File ui/views/win/hwnd_message_handler.cc (right): http://codereview.chromium.org/10959020/diff/153145/ui/views/win/hwnd_message_handler.cc#newcode1855 ui/views/win/hwnd_message_handler.cc:1855: LRESULT HWNDMessageHandler::OnPowerBroadcast(DWORD power_event, DWORD data) { I think we ...
8 years, 1 month ago (2012-11-05 16:13:01 UTC) #77
jianli
webkit/blob LGTM.
8 years, 1 month ago (2012-11-05 18:33:12 UTC) #78
vandebo (ex-Chrome)
http://codereview.chromium.org/10959020/diff/153145/ui/views/win/hwnd_message_handler.cc File ui/views/win/hwnd_message_handler.cc (right): http://codereview.chromium.org/10959020/diff/153145/ui/views/win/hwnd_message_handler.cc#newcode1855 ui/views/win/hwnd_message_handler.cc:1855: LRESULT HWNDMessageHandler::OnPowerBroadcast(DWORD power_event, DWORD data) { On 2012/11/05 16:13:01, ...
8 years, 1 month ago (2012-11-05 18:36:11 UTC) #79
Hongbo Min
On 2012/11/05 18:36:11, vandebo wrote: > http://codereview.chromium.org/10959020/diff/153145/ui/views/win/hwnd_message_handler.cc > File ui/views/win/hwnd_message_handler.cc (right): > > http://codereview.chromium.org/10959020/diff/153145/ui/views/win/hwnd_message_handler.cc#newcode1855 > ...
8 years, 1 month ago (2012-11-07 01:26:46 UTC) #80
vandebo (ex-Chrome)
ping... Ben. Is this ok for now?
8 years, 1 month ago (2012-11-08 03:27:32 UTC) #81
Ben Goodger (Google)
No, I don't want to see more stuff get added here. If this stuff is ...
8 years, 1 month ago (2012-11-12 16:16:36 UTC) #82
Hongbo Min
On 2012/11/12 16:16:36, Ben Goodger (Google) wrote: > No, I don't want to see more ...
8 years, 1 month ago (2012-11-16 05:07:13 UTC) #83
vandebo (ex-Chrome)
On 2012/11/16 05:07:13, Hongbo Min wrote: > Do you have any suggestion to remove it? ...
7 years, 11 months ago (2013-01-03 21:52:51 UTC) #84
Hongbo Min
On 2013/01/03 21:52:51, vandebo wrote: > On 2012/11/16 05:07:13, Hongbo Min wrote: > > Do ...
7 years, 11 months ago (2013-01-04 02:16:19 UTC) #85
Hongbo Min
vandebo, the patch is updated with the change that processing power event in BrowserFrameWin instead ...
7 years, 11 months ago (2013-01-04 15:12:28 UTC) #86
vandebo (ex-Chrome)
Ben, is this better?
7 years, 11 months ago (2013-01-04 22:42:29 UTC) #87
Ben Goodger (Google)
https://codereview.chromium.org/10959020/diff/183012/chrome/browser/ui/views/frame/browser_frame_win.cc File chrome/browser/ui/views/frame/browser_frame_win.cc (right): https://codereview.chromium.org/10959020/diff/183012/chrome/browser/ui/views/frame/browser_frame_win.cc#newcode248 chrome/browser/ui/views/frame/browser_frame_win.cc:248: power_signaler_->ProcessWmPowerBroadcastMessage(power_event); I still don't like having this code in ...
7 years, 11 months ago (2013-01-08 21:44:53 UTC) #88
Hongbo Min
On 2013/01/08 21:44:53, Ben Goodger (Google) wrote: > https://codereview.chromium.org/10959020/diff/183012/chrome/browser/ui/views/frame/browser_frame_win.cc > File chrome/browser/ui/views/frame/browser_frame_win.cc (right): > > ...
7 years, 11 months ago (2013-01-09 05:00:54 UTC) #89
Ben Goodger (Google)
On 2013/01/09 05:00:54, Hongbo Min wrote: > How about add the power message handling logic ...
7 years, 11 months ago (2013-01-09 17:28:21 UTC) #90
Hongbo Min
On 2013/01/09 17:28:21, Ben Goodger (Google) wrote: > On 2013/01/09 05:00:54, Hongbo Min wrote: > ...
7 years, 11 months ago (2013-01-10 14:28:40 UTC) #91
Hongbo Min
vandebo@ and willchan@, I have a concern about the GetSignalerOnce function which is intended to ...
7 years, 11 months ago (2013-01-12 11:22:58 UTC) #92
Hongbo Min
jam@, according to your suggestion, the updated patch creates a message window for listening and ...
7 years, 11 months ago (2013-01-13 14:19:23 UTC) #93
vandebo (ex-Chrome)
On 2013/01/13 14:19:23, Hongbo Min wrote: > jam@, according to your suggestion, the updated patch ...
7 years, 11 months ago (2013-01-15 23:43:48 UTC) #94
vandebo (ex-Chrome)
I think we still want to do this -- pull the power monitor stuff into ...
7 years, 9 months ago (2013-03-15 20:24:39 UTC) #95
Hongbo Min
On 2013/03/15 20:24:39, vandebo wrote: > I think we still want to do this -- ...
7 years, 9 months ago (2013-03-15 20:39:46 UTC) #96
vandebo (ex-Chrome)
On 2013/03/15 20:39:46, Hongbo Min wrote: > On 2013/03/15 20:24:39, vandebo wrote: > > I ...
7 years, 9 months ago (2013-03-15 20:42:20 UTC) #97
Hongbo Min
On 2013/03/15 20:39:46, Hongbo Min wrote: > On 2013/03/15 20:24:39, vandebo wrote: > > I ...
7 years, 9 months ago (2013-03-15 20:43:09 UTC) #98
Hongbo Min
vandeo, the patch is rebased now and merged more fixes into it. The major changes ...
7 years, 9 months ago (2013-03-18 08:35:46 UTC) #99
Hongbo Min
I try to optimize the usage of PowerMonitor and HighResolutionTimerManager in Patch Set 27. Do ...
7 years, 9 months ago (2013-03-18 09:09:12 UTC) #100
vandebo (ex-Chrome)
On 2013/03/18 09:09:12, Hongbo Min wrote: > I try to optimize the usage of PowerMonitor ...
7 years, 9 months ago (2013-03-19 00:38:27 UTC) #101
Hongbo Min
On 2013/03/19 00:38:27, vandebo wrote: > On 2013/03/18 09:09:12, Hongbo Min wrote: > > I ...
7 years, 9 months ago (2013-03-19 00:44:58 UTC) #102
vandebo (ex-Chrome)
https://codereview.chromium.org/10959020/diff/242003/base/android/base_jni_registrar.cc File base/android/base_jni_registrar.cc (right): https://codereview.chromium.org/10959020/diff/242003/base/android/base_jni_registrar.cc#newcode32 base/android/base_jni_registrar.cc:32: { "SystemMonitor", base::RegisterSystemMonitor }, SysMon -> PowMon https://codereview.chromium.org/10959020/diff/242003/base/power_monitor/power_monitor.cc File ...
7 years, 9 months ago (2013-03-19 23:36:04 UTC) #103
Hongbo Min
https://codereview.chromium.org/10959020/diff/242003/base/android/base_jni_registrar.cc File base/android/base_jni_registrar.cc (right): https://codereview.chromium.org/10959020/diff/242003/base/android/base_jni_registrar.cc#newcode32 base/android/base_jni_registrar.cc:32: { "SystemMonitor", base::RegisterSystemMonitor }, On 2013/03/19 23:36:04, vandebo wrote: ...
7 years, 9 months ago (2013-03-20 13:01:50 UTC) #104
vandebo (ex-Chrome)
LGTM with two nits. willchan: are you able to do a final review, or should ...
7 years, 9 months ago (2013-03-20 20:36:25 UTC) #105
vandebo (ex-Chrome)
Removing willchan (away) and Ben (no longer touches ui/views) +brett. Can you please do an ...
7 years, 9 months ago (2013-03-20 22:55:20 UTC) #106
vandebo (ex-Chrome)
Removing willchan (away) and Ben (no longer touches ui/views) +brett. Can you please do an ...
7 years, 9 months ago (2013-03-20 22:57:22 UTC) #107
nilesh
On 2013/03/20 22:57:22, vandebo wrote: > Removing willchan (away) and Ben (no longer touches ui/views) ...
7 years, 9 months ago (2013-03-20 23:08:53 UTC) #108
Hongbo Min
ping brett
7 years, 9 months ago (2013-03-21 23:27:00 UTC) #109
Hongbo Min
brettw@, do you have a time to review this CL? Thanks!
7 years, 9 months ago (2013-03-26 01:12:48 UTC) #110
brettw
LGTM, thanks for putting up with the latency.
7 years, 8 months ago (2013-04-01 22:52:06 UTC) #111
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/10959020/341001
7 years, 8 months ago (2013-04-02 01:33:21 UTC) #112
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=49542
7 years, 8 months ago (2013-04-02 02:45:28 UTC) #113
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/10959020/341001
7 years, 8 months ago (2013-04-02 05:21:54 UTC) #114
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=49582
7 years, 8 months ago (2013-04-02 06:29:41 UTC) #115
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/10959020/362001
7 years, 8 months ago (2013-04-02 06:54:39 UTC) #116
commit-bot: I haz the power
Presubmit check for 10959020-362001 failed and returned exit status 1. INFO:root:Found 41 file(s). INFO:PRESUBMIT:Skipping pylint: ...
7 years, 8 months ago (2013-04-02 06:54:58 UTC) #117
Hongbo Min
On 2013/04/02 06:54:58, I haz the power (commit-bot) wrote: > Presubmit check for 10959020-362001 failed ...
7 years, 8 months ago (2013-04-02 06:59:54 UTC) #118
vandebo (ex-Chrome)
On 2013/04/02 06:59:54, Hongbo Min wrote: > On 2013/04/02 06:54:58, I haz the power (commit-bot) ...
7 years, 8 months ago (2013-04-02 18:26:52 UTC) #119
michaelbai
Yes, you could bypass this one.
7 years, 8 months ago (2013-04-02 18:45:50 UTC) #120
michaelbai
It needs to change presubmit script to bypass, I think you'd better to fix the ...
7 years, 8 months ago (2013-04-02 20:41:38 UTC) #121
nilesh
Lazy initialization using holder class is preferred over explicit synchronization. For eg. @@ -18,6 +18,9 ...
7 years, 8 months ago (2013-04-02 21:24:24 UTC) #122
Hongbo Min
nilesh@, pls help review the PowerMonitor.java changes with lazy holder usage. If it looks good ...
7 years, 8 months ago (2013-04-03 13:59:52 UTC) #123
nilesh
On 2013/04/03 13:59:52, Hongbo Min wrote: > nilesh@, pls help review the PowerMonitor.java changes with ...
7 years, 8 months ago (2013-04-03 15:27:16 UTC) #124
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/10959020/375001
7 years, 8 months ago (2013-04-03 15:27:54 UTC) #125
commit-bot: I haz the power
7 years, 8 months ago (2013-04-03 19:06:57 UTC) #126
Message was sent while issue was closed.
Change committed as 192114

Powered by Google App Engine
This is Rietveld 408576698