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

Issue 791633003: Fix a crash on closing tab while the plugin settings bubble is visible (Closed)

Created:
6 years ago by babu
Modified:
6 years ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix a crash on closing tab while the plugin settings bubble is visible Add a null check instead of DCHECK() for web contents since it can be NULL and cause a crash on debug builds, if the tab is closed while the plugin settings bubble is visible and the setting was changed to Allow plugins. BUG=440410 Committed: https://crrev.com/7521caae75e0194344e4b0fd5fa85660eedeaf5a Cr-Commit-Position: refs/heads/master@{#308299}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Addressed review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M chrome/browser/ui/content_settings/content_setting_bubble_model.cc View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 12 (3 generated)
babu
6 years ago (2014-12-09 14:51:05 UTC) #2
Lei Zhang
Greg, do you remember why some of the OnCustomLinkClicked() methods in content_setting_bubble_model.cc have a DCHECK(web_contents()) ...
6 years ago (2014-12-11 18:32:46 UTC) #4
Greg Billock
No, I don't think I ever learned that. :-( On Thu, Dec 11, 2014 at ...
6 years ago (2014-12-11 20:06:21 UTC) #5
markusheintz_
On 2014/12/11 20:06:21, Greg Billock wrote: > No, I don't think I ever learned that. ...
6 years ago (2014-12-12 09:42:49 UTC) #6
markusheintz_
LGTM after addressing my comement https://codereview.chromium.org/791633003/diff/1/chrome/browser/ui/content_settings/content_setting_bubble_model.cc File chrome/browser/ui/content_settings/content_setting_bubble_model.cc (right): https://codereview.chromium.org/791633003/diff/1/chrome/browser/ui/content_settings/content_setting_bubble_model.cc#newcode500 chrome/browser/ui/content_settings/content_setting_bubble_model.cc:500: if (!web_contents()) Please add ...
6 years ago (2014-12-12 09:43:09 UTC) #7
babu
Thanks for review! On 2014/12/12 09:43:09, markusheintz_ wrote: > LGTM after addressing my comement > ...
6 years ago (2014-12-12 12:02:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/791633003/20001
6 years ago (2014-12-14 16:57:31 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years ago (2014-12-14 17:48:45 UTC) #11
commit-bot: I haz the power
6 years ago (2014-12-14 17:49:33 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/7521caae75e0194344e4b0fd5fa85660eedeaf5a
Cr-Commit-Position: refs/heads/master@{#308299}

Powered by Google App Engine
This is Rietveld 408576698