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

Issue 502003003: Check to ensure PowerObservers are added and removed on the same thread (Closed)

Created:
6 years, 4 months ago by bajones
Modified:
6 years, 3 months ago
Reviewers:
Nico, brettw, scottmg
CC:
chromium-reviews, erikwright+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Check to ensure PowerObservers are added and removed on the same thread This behavior is required by ObserverListThreadSafe and may leads to crashes if not followed BUG=404767 Committed: https://crrev.com/012b3711f9b51af158598adc2f65e8b667f975a3 Cr-Commit-Position: refs/heads/master@{#293230}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Switched to using ThreadChecker #

Total comments: 1

Patch Set 3 : Changed thread_checker_ name. #

Patch Set 4 : Added comment #

Total comments: 1

Patch Set 5 : newline nit #

Patch Set 6 : Fixing bot compiler complaints #

Patch Set 7 : Updated BUILD.gn #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -19 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M base/power_monitor/power_monitor.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M base/power_monitor/power_observer.h View 1 2 3 4 5 2 chunks +13 lines, -2 lines 0 comments Download
A + base/power_monitor/power_observer.cc View 1 2 3 4 5 1 chunk +15 lines, -17 lines 0 comments Download

Messages

Total messages: 27 (3 generated)
bajones
bajones@chromium.org changed reviewers: + brettw@chromium.org, scottmg@chromium.org, thakis@chromium.org
6 years, 4 months ago (2014-08-25 21:19:32 UTC) #1
bajones
Check will enable us to prevent removal race conditions like the one causing https://code.google.com/p/chromium/issues/detail?id=404767
6 years, 4 months ago (2014-08-25 21:19:32 UTC) #2
scottmg
Is ThreadChecker insufficient? (i.e. do you think it's important that this is on in Release?) ...
6 years, 4 months ago (2014-08-25 21:43:17 UTC) #3
bajones
On 2014/08/25 at 21:43:17, scottmg wrote: > Is ThreadChecker insufficient? (i.e. do you think it's ...
6 years, 4 months ago (2014-08-25 22:22:38 UTC) #4
scottmg
Normally it'd be an inline member and then .CalledOnValidThread() in Add/Remove, but is it the ...
6 years, 4 months ago (2014-08-25 22:44:54 UTC) #5
bajones
On 2014/08/25 at 22:44:54, scottmg wrote: > Normally it'd be an inline member and then ...
6 years, 4 months ago (2014-08-25 22:48:52 UTC) #6
scottmg
On 2014/08/25 22:48:52, bajones wrote: > On 2014/08/25 at 22:44:54, scottmg wrote: > > Normally ...
6 years, 4 months ago (2014-08-25 23:05:28 UTC) #7
brettw
https://codereview.chromium.org/502003003/diff/20001/base/power_monitor/power_observer.h File base/power_monitor/power_observer.h (right): https://codereview.chromium.org/502003003/diff/20001/base/power_monitor/power_observer.h#newcode32 base/power_monitor/power_observer.h:32: scoped_ptr<base::ThreadChecker> thread_checker_; A lot of stuff derives from this ...
6 years, 3 months ago (2014-08-26 18:03:34 UTC) #8
bajones
On 2014/08/26 at 18:03:34, brettw wrote: > https://codereview.chromium.org/502003003/diff/20001/base/power_monitor/power_observer.h > File base/power_monitor/power_observer.h (right): > > https://codereview.chromium.org/502003003/diff/20001/base/power_monitor/power_observer.h#newcode32 ...
6 years, 3 months ago (2014-08-26 20:08:39 UTC) #9
brettw
lgtm https://codereview.chromium.org/502003003/diff/60001/base/power_monitor/power_observer.h File base/power_monitor/power_observer.h (right): https://codereview.chromium.org/502003003/diff/60001/base/power_monitor/power_observer.h#newcode33 base/power_monitor/power_observer.h:33: Nit: no blank here.
6 years, 3 months ago (2014-08-26 20:25:39 UTC) #10
bajones
The CQ bit was checked by bajones@chromium.org
6 years, 3 months ago (2014-08-26 20:29:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/502003003/80001
6 years, 3 months ago (2014-08-26 20:30:37 UTC) #12
bajones
The CQ bit was checked by bajones@chromium.org
6 years, 3 months ago (2014-08-26 21:02:56 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/502003003/100001
6 years, 3 months ago (2014-08-26 21:04:30 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-26 22:30:32 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-26 22:37:05 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/9649)
6 years, 3 months ago (2014-08-26 22:37:06 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/502003003/120001
6 years, 3 months ago (2014-09-03 18:23:37 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_rel_swarming on tryserver.chromium.linux ...
6 years, 3 months ago (2014-09-03 19:39:30 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/9656)
6 years, 3 months ago (2014-09-03 20:17:19 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/502003003/120001
6 years, 3 months ago (2014-09-03 23:23:14 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:120001) as 518c46fbba70c91169bfc0c64b542f06e56b3915
6 years, 3 months ago (2014-09-04 00:12:04 UTC) #25
dcheng
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/544913003/ by dcheng@chromium.org. ...
6 years, 3 months ago (2014-09-05 05:04:48 UTC) #26
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:28:51 UTC) #27
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/012b3711f9b51af158598adc2f65e8b667f975a3
Cr-Commit-Position: refs/heads/master@{#293230}

Powered by Google App Engine
This is Rietveld 408576698