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

Issue 176053002: [WebsiteSettings] Change permission bubble API to adapt to new mocks. (Closed)

Created:
6 years, 10 months ago by Greg Billock
Modified:
6 years, 9 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, tfarina, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, Michael van Ouwerkerk, markusheintz_, wjia+watch_chromium.org, miu+watch_chromium.org
Visibility:
Public.

Description

[WebsiteSettings] Change permission bubble API to adapt to new mocks. This adds cancellation ability for the clients that will need it. Adds user gesture awareness to the API. Removes button customization. Adds icons. Some code reorganization as well. R=leng@google.com BUG=332115 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255889

Patch Set 1 #

Total comments: 22

Patch Set 2 : Add accessor for host requesting a permission #

Patch Set 3 : tweaks #

Total comments: 1

Patch Set 4 : Add multi-download bubble changes. #

Total comments: 4

Patch Set 5 : Update user gesture return for notifications #

Patch Set 6 : . #

Patch Set 7 : virtuals #

Patch Set 8 : Rebase #

Patch Set 9 : Add cocoa #

Patch Set 10 : . #

Patch Set 11 : mock #

Patch Set 12 : try 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+310 lines, -130 lines) Patch
M chrome/browser/chrome_quota_permission_context.cc View 1 4 chunks +14 lines, -6 lines 0 comments Download
M chrome/browser/custom_handlers/register_protocol_handler_permission_request.h View 1 2 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/custom_handlers/register_protocol_handler_permission_request.cc View 1 3 chunks +15 lines, -10 lines 0 comments Download
M chrome/browser/download/download_permission_request.h View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/download/download_permission_request.cc View 1 2 3 3 chunks +15 lines, -4 lines 0 comments Download
M chrome/browser/download/download_request_limiter_unittest.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context.cc View 1 2 3 4 5 6 7 5 chunks +14 lines, -8 lines 0 comments Download
M chrome/browser/media/chrome_midi_permission_context.cc View 1 2 3 4 5 6 7 4 chunks +13 lines, -6 lines 0 comments Download
M chrome/browser/media/media_stream_devices_controller.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/media/media_stream_devices_controller.cc View 1 2 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service.cc View 1 2 3 4 3 chunks +13 lines, -8 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.mm View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/website_settings/permissions_bubble_view.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/website_settings/permissions_bubble_view.cc View 2 chunks +9 lines, -14 lines 0 comments Download
M chrome/browser/ui/website_settings/mock_permission_bubble_request.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/website_settings/mock_permission_bubble_request.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/website_settings/permission_bubble_manager.h View 1 2 3 1 chunk +14 lines, -4 lines 0 comments Download
M chrome/browser/ui/website_settings/permission_bubble_manager.cc View 1 2 3 3 chunks +54 lines, -27 lines 0 comments Download
M chrome/browser/ui/website_settings/permission_bubble_manager_unittest.cc View 1 2 3 4 5 6 7 chunks +68 lines, -9 lines 0 comments Download
M chrome/browser/ui/website_settings/permission_bubble_request.h View 1 2 2 chunks +13 lines, -16 lines 0 comments Download
M chrome/browser/ui/website_settings/permission_bubble_view.h View 1 2 2 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 39 (0 generated)
Greg Billock
6 years, 10 months ago (2014-02-22 01:31:58 UTC) #1
Greg Billock
On 2014/02/22 01:31:58, Greg Billock wrote: leng will be gone for a while. Can one ...
6 years, 10 months ago (2014-02-25 19:07:40 UTC) #2
groby-ooo-7-16
Does what it says on the box. Mostly questions around APIs, plus a few nits. ...
6 years, 10 months ago (2014-02-25 22:27:36 UTC) #3
Greg Billock
https://codereview.chromium.org/176053002/diff/1/chrome/browser/ui/website_settings/permission_bubble_manager.cc File chrome/browser/ui/website_settings/permission_bubble_manager.cc (right): https://codereview.chromium.org/176053002/diff/1/chrome/browser/ui/website_settings/permission_bubble_manager.cc#newcode51 chrome/browser/ui/website_settings/permission_bubble_manager.cc:51: requests_.clear(); On 2014/02/25 22:27:36, groby wrote: > Why clear? ...
6 years, 10 months ago (2014-02-26 00:28:44 UTC) #4
groby-ooo-7-16
LGTM from my POV, but you'll need to find an OWNER. https://codereview.chromium.org/176053002/diff/1/chrome/browser/ui/website_settings/permission_bubble_manager_unittest.cc File chrome/browser/ui/website_settings/permission_bubble_manager_unittest.cc (right): ...
6 years, 10 months ago (2014-02-26 02:28:11 UTC) #5
Greg Billock
+pkasting for browser.cc owners +fischman for media owners +timvolodine for geoloc owners +dewittj for notifications ...
6 years, 10 months ago (2014-02-26 23:37:41 UTC) #6
Peter Kasting
On 2014/02/26 23:37:41, Greg Billock wrote: > +pkasting for browser.cc owners LGTM. If you have ...
6 years, 10 months ago (2014-02-26 23:40:02 UTC) #7
Ami GONE FROM CHROMIUM
media RS LGTM
6 years, 10 months ago (2014-02-26 23:59:01 UTC) #8
dewittj
https://codereview.chromium.org/176053002/diff/70001/chrome/browser/notifications/desktop_notification_service.cc File chrome/browser/notifications/desktop_notification_service.cc (left): https://codereview.chromium.org/176053002/diff/70001/chrome/browser/notifications/desktop_notification_service.cc#oldcode141 chrome/browser/notifications/desktop_notification_service.cc:141: return l10n_util::GetStringUTF16(IDS_NOTIFICATION_PERMISSION_YES); Does this mean that Yes/No is the ...
6 years, 10 months ago (2014-02-27 00:19:43 UTC) #9
Greg Billock
https://codereview.chromium.org/176053002/diff/70001/chrome/browser/notifications/desktop_notification_service.cc File chrome/browser/notifications/desktop_notification_service.cc (left): https://codereview.chromium.org/176053002/diff/70001/chrome/browser/notifications/desktop_notification_service.cc#oldcode141 chrome/browser/notifications/desktop_notification_service.cc:141: return l10n_util::GetStringUTF16(IDS_NOTIFICATION_PERMISSION_YES); On 2014/02/27 00:19:43, dewittj wrote: > Does ...
6 years, 10 months ago (2014-02-27 00:39:43 UTC) #10
Greg Billock
On 2014/02/27 00:39:43, Greg Billock wrote: > https://codereview.chromium.org/176053002/diff/70001/chrome/browser/notifications/desktop_notification_service.cc > File chrome/browser/notifications/desktop_notification_service.cc (left): > > https://codereview.chromium.org/176053002/diff/70001/chrome/browser/notifications/desktop_notification_service.cc#oldcode141 ...
6 years, 9 months ago (2014-02-27 19:01:18 UTC) #11
Greg Billock
The CQ bit was checked by gbillock@chromium.org
6 years, 9 months ago (2014-03-03 16:15:42 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/176053002/140001
6 years, 9 months ago (2014-03-03 16:15:49 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-03 16:48:18 UTC) #14
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=53055
6 years, 9 months ago (2014-03-03 16:48:18 UTC) #15
Greg Billock
On 2014/03/03 16:48:18, I haz the power (commit-bot) wrote: > Retried try job too often ...
6 years, 9 months ago (2014-03-05 20:06:32 UTC) #16
dewittj
c/b/notifications lgtm
6 years, 9 months ago (2014-03-05 20:48:22 UTC) #17
Nico
first 3 files lgtm
6 years, 9 months ago (2014-03-05 22:43:41 UTC) #18
Greg Billock
The CQ bit was checked by gbillock@chromium.org
6 years, 9 months ago (2014-03-06 18:10:44 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/176053002/140001
6 years, 9 months ago (2014-03-06 18:12:52 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/176053002/140001
6 years, 9 months ago (2014-03-06 20:54:33 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/176053002/140001
6 years, 9 months ago (2014-03-06 21:42:11 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/176053002/140001
6 years, 9 months ago (2014-03-06 22:17:40 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 05:03:48 UTC) #24
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) telemetry_perf_unittests, telemetry_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=233600
6 years, 9 months ago (2014-03-07 05:03:49 UTC) #25
Greg Billock
The CQ bit was checked by gbillock@chromium.org
6 years, 9 months ago (2014-03-07 18:26:16 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/176053002/140001
6 years, 9 months ago (2014-03-07 18:26:47 UTC) #27
Greg Billock
The CQ bit was unchecked by gbillock@chromium.org
6 years, 9 months ago (2014-03-07 18:26:58 UTC) #28
Greg Billock
The CQ bit was checked by gbillock@chromium.org
6 years, 9 months ago (2014-03-08 04:14:49 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/176053002/160001
6 years, 9 months ago (2014-03-08 10:40:48 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-08 12:07:33 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg
6 years, 9 months ago (2014-03-08 12:07:34 UTC) #32
Greg Billock
The CQ bit was checked by gbillock@chromium.org
6 years, 9 months ago (2014-03-08 16:53:44 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/176053002/180001
6 years, 9 months ago (2014-03-08 16:54:07 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-08 17:37:27 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg
6 years, 9 months ago (2014-03-08 17:37:28 UTC) #36
Greg Billock
The CQ bit was checked by gbillock@chromium.org
6 years, 9 months ago (2014-03-09 22:33:33 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/176053002/220001
6 years, 9 months ago (2014-03-09 22:33:40 UTC) #38
commit-bot: I haz the power
6 years, 9 months ago (2014-03-10 06:39:56 UTC) #39
Message was sent while issue was closed.
Change committed as 255889

Powered by Google App Engine
This is Rietveld 408576698