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

Issue 2668833003: DialogBrowserTest implementation to invoke Content settings bubble dialogs. (Closed)

Created:
3 years, 10 months ago by kylix_rd
Modified:
3 years, 10 months ago
CC:
chromium-reviews, tfarina, bsep, Elly Fong-Jones
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DialogBrowserTest implementation to invoke Content settings bubble dialogs. There needs to be a way to invoke all the various content settings bubble dialog views. This wires up the BrowserDialogTest framework in order to invoke/test them. BUG=652024 Review-Url: https://codereview.chromium.org/2668833003 Cr-Commit-Position: refs/heads/master@{#450776} Committed: https://chromium.googlesource.com/chromium/src/+/a5d37aea27ce6ff61d1b7c55c65fe4d7ecc662fe

Patch Set 1 #

Patch Set 2 : Temporarily added --disable-gpu when launching subprocess. Filled out all bubble dialog invocation … #

Total comments: 2

Patch Set 3 : content_type() -> GetContentType() #

Patch Set 4 : Fixed Cocoa build #

Total comments: 55

Patch Set 5 : Cleanup/changed due to feedback #

Patch Set 6 : Merge fix from https://codereview.chromium.org/2663163004. This is temporary #

Total comments: 28

Patch Set 7 : Merged in suggestions from reviewers #

Total comments: 31

Patch Set 8 : Updates from feedback #

Total comments: 32

Patch Set 9 : Fixed nits and added enum element per recommendation. #

Total comments: 5

Patch Set 10 : Build fix for Windows & Linux #

Patch Set 11 : Invoke bubble dialog on key release of the space bar #

Total comments: 3

Patch Set 12 : Removed the 'deceptive content' enum element in favor of the new 'subresource filter' element #

Total comments: 9

Patch Set 13 : More nits addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -27 lines) Patch
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_image_model.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_image_model.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +57 lines, -27 lines 0 comments Download
M chrome/browser/ui/location_bar/location_bar.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/test/browser_dialog_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +11 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/location_bar/content_setting_bubble_dialog_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +160 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 94 (53 generated)
kylix_rd
I've created this CL for the initial purpose of getting it to actually work. I ...
3 years, 10 months ago (2017-02-01 19:23:52 UTC) #2
Bret
On 2017/02/01 19:23:52, kylix_rd wrote: > I've created this CL for the initial purpose of ...
3 years, 10 months ago (2017-02-01 20:58:54 UTC) #3
kylix_rd
On 2017/02/01 20:58:54, Bret Sepulveda wrote: > On 2017/02/01 19:23:52, kylix_rd wrote: > > I've ...
3 years, 10 months ago (2017-02-01 21:15:36 UTC) #4
tapted
On 2017/02/01 21:15:36, kylix_rd wrote: > On 2017/02/01 20:58:54, Bret Sepulveda wrote: > > On ...
3 years, 10 months ago (2017-02-02 11:34:26 UTC) #5
kylix_rd
This patch fleshes out the interactive dialog tests for the various content settings bubbles. tapted@ ...
3 years, 10 months ago (2017-02-02 16:58:17 UTC) #10
Bernhard Bauer
https://codereview.chromium.org/2668833003/diff/40001/chrome/browser/ui/content_settings/content_setting_image_model.h File chrome/browser/ui/content_settings/content_setting_image_model.h (right): https://codereview.chromium.org/2668833003/diff/40001/chrome/browser/ui/content_settings/content_setting_image_model.h#newcode69 chrome/browser/ui/content_settings/content_setting_image_model.h:69: virtual ContentSettingsType content_type(); Name this method GetContentType()? It seems ...
3 years, 10 months ago (2017-02-02 17:33:19 UTC) #11
kylix_rd
https://codereview.chromium.org/2668833003/diff/40001/chrome/browser/ui/content_settings/content_setting_image_model.h File chrome/browser/ui/content_settings/content_setting_image_model.h (right): https://codereview.chromium.org/2668833003/diff/40001/chrome/browser/ui/content_settings/content_setting_image_model.h#newcode69 chrome/browser/ui/content_settings/content_setting_image_model.h:69: virtual ContentSettingsType content_type(); On 2017/02/02 17:33:19, Bernhard Bauer wrote: ...
3 years, 10 months ago (2017-02-02 19:07:16 UTC) #13
Bernhard Bauer
content_settings LGTM.
3 years, 10 months ago (2017-02-02 19:14:08 UTC) #15
kylix_rd
tapted@ - It appears that you're on the list of OWNERS for the Cocoa bits... ...
3 years, 10 months ago (2017-02-02 19:58:13 UTC) #20
tapted
Can you add a BUG= and a CL description? https://codereview.chromium.org/2668833003/diff/100001/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h File chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h (right): https://codereview.chromium.org/2668833003/diff/100001/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h#newcode86 chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h:86: ...
3 years, 10 months ago (2017-02-03 00:35:45 UTC) #25
tapted
https://codereview.chromium.org/2668833003/diff/100001/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h File chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h (right): https://codereview.chromium.org/2668833003/diff/100001/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h#newcode86 chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h:86: int ContentSettingImageModelCount() override; On 2017/02/03 00:35:39, tapted wrote: > ...
3 years, 10 months ago (2017-02-03 00:38:01 UTC) #26
kylix_rd
There is more work and discussion needed. This is a checkpoint for most of the ...
3 years, 10 months ago (2017-02-03 18:55:04 UTC) #30
Peter Kasting
Random drive-by https://codereview.chromium.org/2668833003/diff/100001/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm File chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm (right): https://codereview.chromium.org/2668833003/diff/100001/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm#newcode341 chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm:341: DCHECK(index >= 0 && index < content_setting_decorations_.size()); ...
3 years, 10 months ago (2017-02-03 22:20:41 UTC) #35
tapted
I think I will need to play with this on Monday to see how it ...
3 years, 10 months ago (2017-02-03 23:07:03 UTC) #36
tapted
https://codereview.chromium.org/2668833003/diff/180001/chrome/test/BUILD.gn File chrome/test/BUILD.gn (right): https://codereview.chromium.org/2668833003/diff/180001/chrome/test/BUILD.gn#newcode2144 chrome/test/BUILD.gn:2144: "../browser/ui/views/frame/browser_non_client_frame_view_browsertest_win.cc", On 2017/02/03 23:07:03, tapted wrote: > The browser ...
3 years, 10 months ago (2017-02-06 09:34:31 UTC) #37
Peter Kasting
LGTM https://codereview.chromium.org/2668833003/diff/180001/chrome/browser/ui/views/location_bar/content_setting_bubble_dialog_browsertest.cc File chrome/browser/ui/views/location_bar/content_setting_bubble_dialog_browsertest.cc (right): https://codereview.chromium.org/2668833003/diff/180001/chrome/browser/ui/views/location_bar/content_setting_bubble_dialog_browsertest.cc#newcode33 chrome/browser/ui/views/location_bar/content_setting_bubble_dialog_browsertest.cc:33: }; Nit: I think you still want DISALLOW_COPY_AND_ASSIGN ...
3 years, 10 months ago (2017-02-06 21:14:25 UTC) #38
kylix_rd
This patch implements aspects from tapted@'s CL :https://codereview.chromium.org/2675213002/ It differs in content_setting_image_model.cc where the vector ...
3 years, 10 months ago (2017-02-06 21:42:50 UTC) #39
tapted
neat! I like where this is headed :) . Thanks a ton for looping in ...
3 years, 10 months ago (2017-02-07 01:23:32 UTC) #40
Peter Kasting
https://codereview.chromium.org/2668833003/diff/200001/chrome/browser/ui/content_settings/content_setting_image_model.cc File chrome/browser/ui/content_settings/content_setting_image_model.cc (right): https://codereview.chromium.org/2668833003/diff/200001/chrome/browser/ui/content_settings/content_setting_image_model.cc#newcode525 chrome/browser/ui/content_settings/content_setting_image_model.cc:525: static constexpr ContentSettingsType content_types[] = { On 2017/02/07 01:23:31, ...
3 years, 10 months ago (2017-02-07 01:34:06 UTC) #41
kylix_rd
This should address most of the feedback. Will likely need another cleanup pass. https://codereview.chromium.org/2668833003/diff/200001/chrome/browser/ui/content_settings/content_setting_image_model.cc File ...
3 years, 10 months ago (2017-02-07 18:25:21 UTC) #44
tapted
lgtm with a few nits (assuming there's no fallout..), but please wait for a c/b/ui/ ...
3 years, 10 months ago (2017-02-08 00:31:50 UTC) #49
Peter Kasting
On 2017/02/08 00:31:50, tapted wrote: > lgtm with a few nits (assuming there's no fallout..), ...
3 years, 10 months ago (2017-02-08 00:33:06 UTC) #50
tapted
On 2017/02/08 00:33:06, Peter Kasting wrote: > On 2017/02/08 00:31:50, tapted wrote: > > lgtm ...
3 years, 10 months ago (2017-02-08 00:35:48 UTC) #51
Peter Kasting
https://codereview.chromium.org/2668833003/diff/240001/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm File chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm (right): https://codereview.chromium.org/2668833003/diff/240001/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm#newcode336 chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm:336: if (index >= content_setting_decorations_.size()) Nit: Should this just DCHECK_LT? ...
3 years, 10 months ago (2017-02-08 01:00:04 UTC) #52
tapted
https://codereview.chromium.org/2668833003/diff/240001/chrome/browser/ui/content_settings/content_setting_image_model.cc File chrome/browser/ui/content_settings/content_setting_image_model.cc (right): https://codereview.chromium.org/2668833003/diff/240001/chrome/browser/ui/content_settings/content_setting_image_model.cc#newcode571 chrome/browser/ui/content_settings/content_setting_image_model.cc:571: base::MakeUnique<ContentSettingBlockedImageModel>(icon)); On 2017/02/08 01:00:03, Peter Kasting wrote: > On ...
3 years, 10 months ago (2017-02-08 01:20:19 UTC) #53
Peter Kasting
https://codereview.chromium.org/2668833003/diff/240001/chrome/browser/ui/content_settings/content_setting_image_model.cc File chrome/browser/ui/content_settings/content_setting_image_model.cc (right): https://codereview.chromium.org/2668833003/diff/240001/chrome/browser/ui/content_settings/content_setting_image_model.cc#newcode571 chrome/browser/ui/content_settings/content_setting_image_model.cc:571: base::MakeUnique<ContentSettingBlockedImageModel>(icon)); On 2017/02/08 01:20:19, tapted wrote: > On 2017/02/08 ...
3 years, 10 months ago (2017-02-08 01:26:19 UTC) #54
kylix_rd
bauerb@ An element was added to the ContentSettingsType enum per pkasting@'s recommendation. Please verify & ...
3 years, 10 months ago (2017-02-10 22:47:49 UTC) #56
kylix_rd
Another patch to fix a build problem on Windows & Linux. See comment about the ...
3 years, 10 months ago (2017-02-13 17:34:54 UTC) #62
Bernhard Bauer
lgtm
3 years, 10 months ago (2017-02-13 18:48:38 UTC) #66
Peter Kasting
https://codereview.chromium.org/2668833003/diff/280001/chrome/browser/ui/content_settings/content_setting_image_model.cc File chrome/browser/ui/content_settings/content_setting_image_model.cc (right): https://codereview.chromium.org/2668833003/diff/280001/chrome/browser/ui/content_settings/content_setting_image_model.cc#newcode142 chrome/browser/ui/content_settings/content_setting_image_model.cc:142: CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC, // Note: also does camera. Tiny nit: Since ...
3 years, 10 months ago (2017-02-13 23:10:51 UTC) #71
tapted
https://codereview.chromium.org/2668833003/diff/320001/components/content_settings/core/common/content_settings_types.h File components/content_settings/core/common/content_settings_types.h (right): https://codereview.chromium.org/2668833003/diff/320001/components/content_settings/core/common/content_settings_types.h#newcode56 components/content_settings/core/common/content_settings_types.h:56: CONTENT_SETTINGS_TYPE_DECEPTIVE_CONTENT, On 2017/02/13 23:10:50, Peter Kasting wrote: > I ...
3 years, 10 months ago (2017-02-13 23:49:46 UTC) #72
kylix_rd
Now using the CONTENT_SETTINGS_TYPE_SUBRESOURCE_FILTER element. Removed CONTENT_SETTINGS_TYPE_DECEPTIVE_CONTENT element. Hopefully this should address everything. https://codereview.chromium.org/2668833003/diff/280001/chrome/browser/ui/content_settings/content_setting_image_model.cc File ...
3 years, 10 months ago (2017-02-14 15:20:43 UTC) #73
Peter Kasting
LGTM https://codereview.chromium.org/2668833003/diff/280001/chrome/browser/ui/content_settings/content_setting_image_model.cc File chrome/browser/ui/content_settings/content_setting_image_model.cc (right): https://codereview.chromium.org/2668833003/diff/280001/chrome/browser/ui/content_settings/content_setting_image_model.cc#newcode95 chrome/browser/ui/content_settings/content_setting_image_model.cc:95: Nit: Don't remove this https://codereview.chromium.org/2668833003/diff/340001/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): ...
3 years, 10 months ago (2017-02-15 01:14:01 UTC) #78
tapted
lgtm - just a few minor things from earlier comments. I've copied on to the ...
3 years, 10 months ago (2017-02-15 01:44:26 UTC) #79
kylix_rd
Once all the try-bots finish, I'll commit this. https://codereview.chromium.org/2668833003/diff/340001/chrome/browser/ui/location_bar/location_bar.h File chrome/browser/ui/location_bar/location_bar.h (right): https://codereview.chromium.org/2668833003/diff/340001/chrome/browser/ui/location_bar/location_bar.h#newcode132 chrome/browser/ui/location_bar/location_bar.h:132: // ...
3 years, 10 months ago (2017-02-15 16:42:59 UTC) #81
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/2668833003/360001
3 years, 10 months ago (2017-02-15 17:58:09 UTC) #87
Peter Kasting
https://codereview.chromium.org/2668833003/diff/340001/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/2668833003/diff/340001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode1082 chrome/browser/ui/views/location_bar/location_bar_view.cc:1082: // to the protected section. On 2017/02/15 16:42:59, kylix_rd ...
3 years, 10 months ago (2017-02-15 19:11:40 UTC) #88
kylix_rd
On 2017/02/15 19:11:40, Peter Kasting wrote: > https://codereview.chromium.org/2668833003/diff/340001/chrome/browser/ui/views/location_bar/location_bar_view.cc > File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): > > https://codereview.chromium.org/2668833003/diff/340001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode1082 ...
3 years, 10 months ago (2017-02-15 19:20:52 UTC) #89
Peter Kasting
On 2017/02/15 19:20:52, kylix_rd wrote: > On 2017/02/15 19:11:40, Peter Kasting wrote: > > > ...
3 years, 10 months ago (2017-02-15 19:29:25 UTC) #90
kylix_rd
On 2017/02/15 19:29:25, Peter Kasting wrote: > On 2017/02/15 19:20:52, kylix_rd wrote: > > On ...
3 years, 10 months ago (2017-02-15 19:34:38 UTC) #91
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 19:45:26 UTC) #94
Message was sent while issue was closed.
Committed patchset #13 (id:360001) as
https://chromium.googlesource.com/chromium/src/+/a5d37aea27ce6ff61d1b7c55c65f...

Powered by Google App Engine
This is Rietveld 408576698