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

Issue 10961027: cros: Fix crash in AppNonClientFrameViewAura::ControlView::ButtonPressed (Closed)

Created:
8 years, 3 months ago by James Cook
Modified:
8 years, 3 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

cros: Fix crash in AppNonClientFrameViewAura::ControlView::ButtonPressed Restoring the window via a keyboard shortcut will result in the AppNonClientFrameViewAura being deleted but the widget with the restore/close buttons still visible. The widget's view will have an owner_ pointer to deleted memory, then dereference it if the buttons are clicked. Crash was introduced by the fix to crbug.com/147635 at crrev.com/156152 BUG=149938 TEST=added AppNonClientFrameViewAuraTest.SnapLeftClosesControls Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157918

Patch Set 1 #

Patch Set 2 : add test #

Total comments: 4

Patch Set 3 : review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -1 line) Patch
M chrome/browser/ui/views/frame/app_non_client_frame_view_aura.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc View 1 2 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/app_non_client_frame_view_aura_browsertest.cc View 1 2 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
James Cook
Scott, PTAL. This fixes a case where the maximized app window controls can be left ...
8 years, 3 months ago (2012-09-20 19:25:51 UTC) #1
sky
LGTM https://codereview.chromium.org/10961027/diff/3/chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc File chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc (right): https://codereview.chromium.org/10961027/diff/3/chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc#newcode165 chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc:165: const char AppNonClientFrameViewAura::kControlWindowName[] = Typically we put: // ...
8 years, 3 months ago (2012-09-20 20:02:14 UTC) #2
James Cook
Thanks! https://codereview.chromium.org/10961027/diff/3/chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc File chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc (right): https://codereview.chromium.org/10961027/diff/3/chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc#newcode165 chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc:165: const char AppNonClientFrameViewAura::kControlWindowName[] = On 2012/09/20 20:02:15, sky ...
8 years, 3 months ago (2012-09-20 20:06:54 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/10961027/8002
8 years, 3 months ago (2012-09-20 23:43:54 UTC) #4
commit-bot: I haz the power
8 years, 3 months ago (2012-09-21 03:46:49 UTC) #5
Change committed as 157918

Powered by Google App Engine
This is Rietveld 408576698