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

Issue 2258763002: Add a feature-controlled persistence checkbox to geolocation prompts on desktop Views platforms. (Closed)

Created:
4 years, 4 months ago by dominickn
Modified:
4 years, 3 months ago
Reviewers:
raymes, xhwang, msw
CC:
chromium-reviews, mlamouri+watch-permissions_chromium.org, tfarina, markusheintz_, msramek+watch_chromium.org, raymes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@permission-infobardelegate-clean
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a feature-controlled persistence checkbox to geolocation prompts on desktop Views platforms. This CL allows geolocation permission prompts to show a checkbox to allow the user to optionally persist their decision. It is intended to use this to gather metrics on whether users are more likely to make a decision on a permission prompt when presented with more information regarding how long the decision will last. Additional tests in the permission layer are added to verify the optional persistence. BUG=632269 Committed: https://crrev.com/d4e446a9c0944eb6748eceaf036f94dfc17acbb4 Cr-Commit-Position: refs/heads/master@{#418189}

Patch Set 1 #

Patch Set 2 : Fix Mac test compile #

Patch Set 3 : Enable for media permissions #

Patch Set 4 : Improve media controller changes #

Patch Set 5 : Fix for multiple requests #

Total comments: 2

Patch Set 6 : Rebase, add dependent #

Total comments: 10

Patch Set 7 : Rebase #

Patch Set 8 : Address comments #

Total comments: 18

Patch Set 9 : Address comments #

Total comments: 1

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -85 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/media/webrtc/media_stream_devices_controller.h View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/media/webrtc/media_stream_devices_controller.cc View 1 2 3 4 5 6 7 8 9 4 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/permissions/permission_context_base.cc View 2 chunks +10 lines, -12 lines 0 comments Download
M chrome/browser/permissions/permission_context_base_unittest.cc View 1 2 3 4 5 6 7 9 chunks +78 lines, -54 lines 0 comments Download
M chrome/browser/permissions/permission_request.h View 4 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/permissions/permission_request.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/permissions/permission_request_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/permissions/permission_request_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/permissions/permission_request_manager.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/permissions/permission_request_manager.cc View 3 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/website_settings/permission_bubble_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/website_settings/permission_prompt_impl.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/website_settings/permission_prompt_impl.cc View 1 2 3 4 5 6 7 8 9 8 chunks +28 lines, -5 lines 0 comments Download
M chrome/browser/ui/website_settings/permission_bubble_browser_test_util.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/website_settings/permission_prompt.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 63 (45 generated)
dominickn
And one more - PTAL! (Sorry for the flood this week, I feel like I've ...
4 years, 4 months ago (2016-08-18 06:40:00 UTC) #4
dominickn
+sergeyu: PTAL at chrome/browser/media. This CL is now depended on by crrev.com/2254763002, with the net ...
4 years, 4 months ago (2016-08-19 05:07:58 UTC) #14
Sergey Ulanov
https://codereview.chromium.org/2258763002/diff/80001/chrome/browser/permissions/permission_request.h File chrome/browser/permissions/permission_request.h (right): https://codereview.chromium.org/2258763002/diff/80001/chrome/browser/permissions/permission_request.h#newcode117 chrome/browser/permissions/permission_request.h:117: bool persist_; PermissionRequest is an interface and style guide ...
4 years, 4 months ago (2016-08-19 17:11:53 UTC) #19
dominickn
https://codereview.chromium.org/2258763002/diff/80001/chrome/browser/permissions/permission_request.h File chrome/browser/permissions/permission_request.h (right): https://codereview.chromium.org/2258763002/diff/80001/chrome/browser/permissions/permission_request.h#newcode117 chrome/browser/permissions/permission_request.h:117: bool persist_; On 2016/08/19 17:11:53, Sergey Ulanov wrote: > ...
4 years, 4 months ago (2016-08-20 01:19:24 UTC) #20
dominickn
raymes: ping. This CL now depends on crrev.com/2254763002, and upstreams the persist boolean from MediaStreamDevicesController ...
4 years, 4 months ago (2016-08-23 20:25:47 UTC) #26
raymes
Overall this seems good. I do feel that the persist option fits slightly better as ...
4 years, 4 months ago (2016-08-24 04:00:18 UTC) #29
dominickn
Thanks! I agree that we should be judicious in removing the persist boolean when we've ...
4 years, 4 months ago (2016-08-24 06:30:57 UTC) #35
xhwang
chrome/browser/media/ rs lgtm
4 years, 4 months ago (2016-08-24 17:13:21 UTC) #40
msw
https://codereview.chromium.org/2258763002/diff/140001/chrome/browser/ui/views/website_settings/permission_prompt_impl.cc File chrome/browser/ui/views/website_settings/permission_prompt_impl.cc (right): https://codereview.chromium.org/2258763002/diff/140001/chrome/browser/ui/views/website_settings/permission_prompt_impl.cc#newcode182 chrome/browser/ui/views/website_settings/permission_prompt_impl.cc:182: views::Checkbox* checkbox_; nit: consider a more meaningful name like ...
4 years, 4 months ago (2016-08-24 17:31:24 UTC) #41
dominickn
Thanks! https://codereview.chromium.org/2258763002/diff/140001/chrome/browser/ui/views/website_settings/permission_prompt_impl.cc File chrome/browser/ui/views/website_settings/permission_prompt_impl.cc (right): https://codereview.chromium.org/2258763002/diff/140001/chrome/browser/ui/views/website_settings/permission_prompt_impl.cc#newcode182 chrome/browser/ui/views/website_settings/permission_prompt_impl.cc:182: views::Checkbox* checkbox_; On 2016/08/24 17:31:24, msw wrote: > ...
4 years, 4 months ago (2016-08-24 17:50:26 UTC) #43
msw
c/b/ui/ lgtm https://codereview.chromium.org/2258763002/diff/140001/chrome/browser/ui/views/website_settings/permission_prompt_impl.cc File chrome/browser/ui/views/website_settings/permission_prompt_impl.cc (right): https://codereview.chromium.org/2258763002/diff/140001/chrome/browser/ui/views/website_settings/permission_prompt_impl.cc#newcode477 chrome/browser/ui/views/website_settings/permission_prompt_impl.cc:477: void PermissionPromptImpl::TogglePersist(bool value) { On 2016/08/24 17:50:26, ...
4 years, 4 months ago (2016-08-24 17:59:55 UTC) #48
raymes
lgtm on the condition we get a browser test landed in the next few days, ...
4 years, 4 months ago (2016-08-25 05:26:01 UTC) #49
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/2258763002/180001
4 years, 3 months ago (2016-09-13 07:40:05 UTC) #56
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 3 months ago (2016-09-13 07:44:42 UTC) #58
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/d4e446a9c0944eb6748eceaf036f94dfc17acbb4 Cr-Commit-Position: refs/heads/master@{#418189}
4 years, 3 months ago (2016-09-13 07:47:43 UTC) #60
raymes
Any update on a browser test for this? :) On Tue, 13 Sep 2016, 5:47 ...
4 years, 3 months ago (2016-09-13 07:58:03 UTC) #61
dominickn
It's next on the todo list! I wanted to get this in so it could ...
4 years, 3 months ago (2016-09-13 08:07:18 UTC) #62
raymes
4 years, 3 months ago (2016-09-13 23:14:29 UTC) #63
Message was sent while issue was closed.
Awesome, thanks Dom!

On Tue, 13 Sep 2016 at 18:07 <dominickn@chromium.org> wrote:

> It's next on the todo list! I wanted to get this in so it could bake in
> canary
> for a merge to M54. :)
>
> https://codereview.chromium.org/2258763002/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698