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

Issue 2359633003: Makes ScreenDimmer deal with the shell going away (Closed)

Created:
4 years, 3 months ago by sky
Modified:
4 years, 3 months ago
Reviewers:
James Cook
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Makes ScreenDimmer deal with the shell going away Chrome may end up using ScreenDimmer in such a way that the ScreenDimmer is destroyed after the shell. This change makes ~ScreenDimmer deal with the shell having been destroyed so that it doesn't crash. BUG=648723 TEST=covered by test R=jamescook@chromium.org Committed: https://crrev.com/2ce4166d48b553822dda8ab5cafa0042c36729c5 Cr-Commit-Position: refs/heads/master@{#419909}

Patch Set 1 #

Patch Set 2 : comment #

Total comments: 4

Patch Set 3 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -1 line) Patch
M ash/common/wm/screen_dimmer.cc View 1 chunk +3 lines, -1 line 0 comments Download
M ash/wm/screen_dimmer_unittest.cc View 1 2 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
sky
4 years, 3 months ago (2016-09-20 22:50:54 UTC) #1
sky
oshima->jamescook as Oshima is OOO.
4 years, 3 months ago (2016-09-20 22:51:52 UTC) #6
James Cook
https://codereview.chromium.org/2359633003/diff/20001/ash/common/wm/screen_dimmer.cc File ash/common/wm/screen_dimmer.cc (right): https://codereview.chromium.org/2359633003/diff/20001/ash/common/wm/screen_dimmer.cc#newcode36 ash/common/wm/screen_dimmer.cc:36: if (WmShell::HasInstance()) Does this mean we'll never clean up ...
4 years, 3 months ago (2016-09-20 23:26:18 UTC) #8
sky
https://codereview.chromium.org/2359633003/diff/20001/ash/common/wm/screen_dimmer.cc File ash/common/wm/screen_dimmer.cc (right): https://codereview.chromium.org/2359633003/diff/20001/ash/common/wm/screen_dimmer.cc#newcode36 ash/common/wm/screen_dimmer.cc:36: if (WmShell::HasInstance()) On 2016/09/20 23:26:18, James Cook wrote: > ...
4 years, 3 months ago (2016-09-20 23:33:05 UTC) #11
sky
https://codereview.chromium.org/2359633003/diff/20001/ash/wm/screen_dimmer_unittest.cc File ash/wm/screen_dimmer_unittest.cc (right): https://codereview.chromium.org/2359633003/diff/20001/ash/wm/screen_dimmer_unittest.cc#newcode132 ash/wm/screen_dimmer_unittest.cc:132: } On 2016/09/20 23:26:18, James Cook wrote: > I ...
4 years, 3 months ago (2016-09-20 23:33:20 UTC) #12
James Cook
lgtm
4 years, 3 months ago (2016-09-20 23:56:21 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2359633003/40001
4 years, 3 months ago (2016-09-21 00:00:57 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-21 00:10:11 UTC) #20
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 00:14:40 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2ce4166d48b553822dda8ab5cafa0042c36729c5
Cr-Commit-Position: refs/heads/master@{#419909}

Powered by Google App Engine
This is Rietveld 408576698