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

Issue 2510363003: Only activate radio buttons in ContentSettingsBubble for valid content settings. This prevents fail… (Closed)

Created:
4 years, 1 month ago by dullweber
Modified:
3 years, 10 months ago
Reviewers:
msramek, markusheintz_
CC:
chromium-reviews, msramek+watch_chromium.org, raymes+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Only activate radio buttons in ContentSettingsBubble for valid content settings. This prevents failed DCHECK e.g. for about:blank if you try to create popups from the console. BUG=244176 Committed: https://crrev.com/b98654eba7ccaf4bc7e554c0e11c412f9d72d690 Cr-Commit-Position: refs/heads/master@{#436285}

Patch Set 1 #

Total comments: 4

Patch Set 2 : extract GetNarrowestSetting, add isValid check #

Patch Set 3 : add static modifier #

Total comments: 6

Patch Set 4 : rename and move GetNarrowestPattern #

Patch Set 5 : fix ContentSettingsBubbleUnittest #

Patch Set 6 : use narrowest pattern for isValid check #

Patch Set 7 : add test for radio_group_enabled with valid and invalid url #

Patch Set 8 : rename IsValidSetting #

Total comments: 10

Patch Set 9 : fix comments #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -24 lines) Patch
M chrome/browser/content_settings/host_content_settings_map_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_bubble_model.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc View 1 2 3 4 5 6 5 chunks +42 lines, -0 lines 0 comments Download
M components/content_settings/core/browser/host_content_settings_map.h View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -0 lines 0 comments Download
M components/content_settings/core/browser/host_content_settings_map.cc View 1 2 3 4 5 6 7 8 9 5 chunks +44 lines, -23 lines 0 comments Download

Messages

Total messages: 35 (20 generated)
dullweber
Martin, please review this change
4 years, 1 month ago (2016-11-18 12:49:43 UTC) #2
msramek
https://codereview.chromium.org/2510363003/diff/1/components/content_settings/core/browser/host_content_settings_map.cc File components/content_settings/core/browser/host_content_settings_map.cc (right): https://codereview.chromium.org/2510363003/diff/1/components/content_settings/core/browser/host_content_settings_map.cc#newcode330 components/content_settings/core/browser/host_content_settings_map.cc:330: content_settings::PatternPair patterns = GetPatternsFromScopingType( This tests whether the patterns ...
4 years, 1 month ago (2016-11-21 09:34:53 UTC) #4
dullweber
https://codereview.chromium.org/2510363003/diff/1/components/content_settings/core/browser/host_content_settings_map.cc File components/content_settings/core/browser/host_content_settings_map.cc (right): https://codereview.chromium.org/2510363003/diff/1/components/content_settings/core/browser/host_content_settings_map.cc#newcode330 components/content_settings/core/browser/host_content_settings_map.cc:330: content_settings::PatternPair patterns = GetPatternsFromScopingType( On 2016/11/21 09:34:53, msramek wrote: ...
4 years, 1 month ago (2016-11-21 12:52:04 UTC) #5
msramek
https://codereview.chromium.org/2510363003/diff/40001/components/content_settings/core/browser/host_content_settings_map.cc File components/content_settings/core/browser/host_content_settings_map.cc (right): https://codereview.chromium.org/2510363003/diff/40001/components/content_settings/core/browser/host_content_settings_map.cc#newcode334 components/content_settings/core/browser/host_content_settings_map.cc:334: content_settings::PatternPair HostContentSettingsMap::GetNarrowestPattern( This is not the narrowest pattern, it's ...
4 years, 1 month ago (2016-11-21 15:48:31 UTC) #6
dullweber
https://codereview.chromium.org/2510363003/diff/40001/components/content_settings/core/browser/host_content_settings_map.cc File components/content_settings/core/browser/host_content_settings_map.cc (right): https://codereview.chromium.org/2510363003/diff/40001/components/content_settings/core/browser/host_content_settings_map.cc#newcode334 components/content_settings/core/browser/host_content_settings_map.cc:334: content_settings::PatternPair HostContentSettingsMap::GetNarrowestPattern( On 2016/11/21 15:48:30, msramek wrote: > This ...
4 years, 1 month ago (2016-11-22 08:49:24 UTC) #9
dullweber
markusheintz@chromium.org: Please review changes in content_settings_bubble_model
4 years, 1 month ago (2016-11-22 13:28:56 UTC) #21
msramek
Thanks. I think this is a better design than before. LGTM % comments and nits. ...
4 years, 1 month ago (2016-11-22 14:24:12 UTC) #22
dullweber
https://codereview.chromium.org/2510363003/diff/140001/chrome/browser/content_settings/host_content_settings_map_unittest.cc File chrome/browser/content_settings/host_content_settings_map_unittest.cc (right): https://codereview.chromium.org/2510363003/diff/140001/chrome/browser/content_settings/host_content_settings_map_unittest.cc#newcode1747 chrome/browser/content_settings/host_content_settings_map_unittest.cc:1747: auto* map = HostContentSettingsMapFactory::GetForProfile(&profile); On 2016/11/22 14:24:11, msramek wrote: ...
4 years, 1 month ago (2016-11-22 14:55:09 UTC) #23
msramek
Still LGTM.
4 years, 1 month ago (2016-11-22 14:56:22 UTC) #24
markusheintz_
On 2016/11/22 14:56:22, msramek wrote: > Still LGTM. LGTM
4 years ago (2016-12-05 13:37:17 UTC) #25
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/2510363003/180001
4 years ago (2016-12-05 13:39:19 UTC) #28
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years ago (2016-12-05 14:30:21 UTC) #31
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/b98654eba7ccaf4bc7e554c0e11c412f9d72d690 Cr-Commit-Position: refs/heads/master@{#436285}
4 years ago (2016-12-05 14:33:00 UTC) #33
tommycli
On 2016/12/05 14:33:00, commit-bot: I haz the power wrote: > Patchset 10 (id:??) landed as ...
4 years ago (2016-12-07 01:05:03 UTC) #34
dullweber
4 years ago (2016-12-07 09:41:43 UTC) #35
Message was sent while issue was closed.
Hi Tommy,

thanks for noticing this. I removed the DCHECK and it fixes the issue. I created
a CL for it: http://crrev.com/2558003002

Powered by Google App Engine
This is Rietveld 408576698