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

Issue 11194015: Fix crash bugs of FramePainter. (Closed)

Created:
8 years, 2 months ago by Jun Mukai
Modified:
8 years, 2 months ago
Reviewers:
James Cook, sky
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Fix crash bugs of FramePainter. Sometimes FramePainter is deleted without its window's OnWindowDestroying, so removing the kSoloWindowFramePainterKey property explicitly at the destructor. Also this CL adds the checks of painter's frame_ and its non_client_view() since they may be NULL on window destroying timing on test. BUG=155634 TEST=ash_unittests passed with the new test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162432

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -5 lines) Patch
M ash/wm/frame_painter.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/wm/frame_painter.cc View 2 chunks +14 lines, -3 lines 0 comments Download
M ash/wm/frame_painter_unittest.cc View 1 2 chunks +35 lines, -0 lines 0 comments Download
M ash/wm/window_properties.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M ash/wm/window_properties.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Jun Mukai
8 years, 2 months ago (2012-10-16 20:44:47 UTC) #1
James Cook
LGTM with one optional suggestion. https://codereview.chromium.org/11194015/diff/1/ash/wm/frame_painter_unittest.cc File ash/wm/frame_painter_unittest.cc (right): https://codereview.chromium.org/11194015/diff/1/ash/wm/frame_painter_unittest.cc#newcode141 ash/wm/frame_painter_unittest.cc:141: widget.reset(); Maybe after this ...
8 years, 2 months ago (2012-10-16 20:51:46 UTC) #2
Jun Mukai
https://codereview.chromium.org/11194015/diff/1/ash/wm/frame_painter_unittest.cc File ash/wm/frame_painter_unittest.cc (right): https://codereview.chromium.org/11194015/diff/1/ash/wm/frame_painter_unittest.cc#newcode141 ash/wm/frame_painter_unittest.cc:141: widget.reset(); On 2012/10/16 20:51:46, James Cook (Chromium) wrote: > ...
8 years, 2 months ago (2012-10-16 21:11:45 UTC) #3
Jun Mukai
sky, could you also check this?
8 years, 2 months ago (2012-10-16 21:12:10 UTC) #4
sky
LGTM
8 years, 2 months ago (2012-10-16 22:10:05 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/11194015/5001
8 years, 2 months ago (2012-10-17 00:08:03 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/11194015/5001
8 years, 2 months ago (2012-10-17 11:21:31 UTC) #7
commit-bot: I haz the power
Retried try job too often for step(s) compile
8 years, 2 months ago (2012-10-17 11:38:01 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/11194015/5001
8 years, 2 months ago (2012-10-17 15:33:49 UTC) #9
commit-bot: I haz the power
8 years, 2 months ago (2012-10-17 16:48:34 UTC) #10
Change committed as 162432

Powered by Google App Engine
This is Rietveld 408576698