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

Issue 1410033002: Fix occasional crash in ~VPNListView during shell destruction. (Closed)

Created:
5 years, 2 months ago by emaxx
Modified:
5 years, 1 month ago
CC:
chromium-reviews, sadrul, stevenjb+watch_chromium.org, oshima+watch_chromium.org, kalyank
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix occasional crash in ~VPNListView during shell destruction. The crash is caused by the fact that during the ash::Shell destruction the SystemTrayDelegate object is destroyed before the child windows are closed - but apparently the VPNListView destructor accesses SystemTrayDelegate's members without any checks. BUG=542146 TEST=manual testing Committed: https://crrev.com/b0171a54ebf5185259fbb741d771c573d0934ad7 Cr-Commit-Position: refs/heads/master@{#357088}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Disable DCHECK in VPNDelegate; handle possible non-existence of VPNDelegate during VPNListView dest… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -5 lines) Patch
M ash/system/chromeos/network/vpn_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/system/chromeos/network/vpn_list_view.cc View 1 1 chunk +8 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (2 generated)
emaxx
bartfab, stevenjb: Hi, PTAL at this crash-fixing patch.
5 years, 2 months ago (2015-10-16 15:37:19 UTC) #2
bartfab (slow)
https://codereview.chromium.org/1410033002/diff/1/ash/system/chromeos/network/vpn_list_view.cc File ash/system/chromeos/network/vpn_list_view.cc (right): https://codereview.chromium.org/1410033002/diff/1/ash/system/chromeos/network/vpn_list_view.cc#newcode242 ash/system/chromeos/network/vpn_list_view.cc:242: // We need the check as on shell destruction, ...
5 years, 2 months ago (2015-10-16 15:45:25 UTC) #3
stevenjb
https://codereview.chromium.org/1410033002/diff/1/ash/system/chromeos/network/vpn_list_view.cc File ash/system/chromeos/network/vpn_list_view.cc (right): https://codereview.chromium.org/1410033002/diff/1/ash/system/chromeos/network/vpn_list_view.cc#newcode242 ash/system/chromeos/network/vpn_list_view.cc:242: // We need the check as on shell destruction, ...
5 years, 2 months ago (2015-10-16 16:50:07 UTC) #4
bartfab (slow)
https://codereview.chromium.org/1410033002/diff/1/ash/system/chromeos/network/vpn_list_view.cc File ash/system/chromeos/network/vpn_list_view.cc (right): https://codereview.chromium.org/1410033002/diff/1/ash/system/chromeos/network/vpn_list_view.cc#newcode242 ash/system/chromeos/network/vpn_list_view.cc:242: // We need the check as on shell destruction, ...
5 years, 2 months ago (2015-10-16 16:55:22 UTC) #5
stevenjb
https://codereview.chromium.org/1410033002/diff/1/ash/system/chromeos/network/vpn_list_view.cc File ash/system/chromeos/network/vpn_list_view.cc (right): https://codereview.chromium.org/1410033002/diff/1/ash/system/chromeos/network/vpn_list_view.cc#newcode242 ash/system/chromeos/network/vpn_list_view.cc:242: // We need the check as on shell destruction, ...
5 years, 2 months ago (2015-10-16 17:46:18 UTC) #6
emaxx
https://codereview.chromium.org/1410033002/diff/1/ash/system/chromeos/network/vpn_list_view.cc File ash/system/chromeos/network/vpn_list_view.cc (right): https://codereview.chromium.org/1410033002/diff/1/ash/system/chromeos/network/vpn_list_view.cc#newcode242 ash/system/chromeos/network/vpn_list_view.cc:242: // We need the check as on shell destruction, ...
5 years, 2 months ago (2015-10-16 17:58:10 UTC) #7
stevenjb
https://codereview.chromium.org/1410033002/diff/1/ash/system/chromeos/network/vpn_list_view.cc File ash/system/chromeos/network/vpn_list_view.cc (right): https://codereview.chromium.org/1410033002/diff/1/ash/system/chromeos/network/vpn_list_view.cc#newcode242 ash/system/chromeos/network/vpn_list_view.cc:242: // We need the check as on shell destruction, ...
5 years, 2 months ago (2015-10-16 18:06:40 UTC) #8
emaxx
Fixed the DCHECK issue pointed by Bartosz and addressed Steven's comment. Bartosz, I didn't get ...
5 years, 1 month ago (2015-10-28 15:14:38 UTC) #9
stevenjb
This lgtm
5 years, 1 month ago (2015-10-28 16:49:43 UTC) #10
bartfab (slow)
On 2015/10/28 15:14:38, emaxx wrote: > Fixed the DCHECK issue pointed by Bartosz and addressed ...
5 years, 1 month ago (2015-10-28 19:05:42 UTC) #11
stevenjb
VPNDelegate, like many other UI delegates, is owned by the UI that uses it and ...
5 years, 1 month ago (2015-10-28 19:21:11 UTC) #12
bartfab (slow)
I still find the pattern of "maybe the observer goes away first, maybe the observed ...
5 years, 1 month ago (2015-10-29 11:33:43 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410033002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410033002/20001
5 years, 1 month ago (2015-10-30 12:52:43 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-10-30 13:18:56 UTC) #16
commit-bot: I haz the power
5 years, 1 month ago (2015-10-30 13:20:04 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b0171a54ebf5185259fbb741d771c573d0934ad7
Cr-Commit-Position: refs/heads/master@{#357088}

Powered by Google App Engine
This is Rietveld 408576698