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

Issue 1332293002: permissions: switch from explicitly passing queue controller to callbacks (Closed)

Created:
5 years, 3 months ago by Lalit Maganti
Modified:
5 years, 2 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, mcasas+watch_chromium.org, mlamouri+watch-notifications_chromium.org, mlamouri+watch-geolocation_chromium.org, mlamouri+watch-permissions_chromium.org, Michael van Ouwerkerk, peter+watch_chromium.org, posciak+watch_chromium.org, toyoshim+midi_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

permissions: switch from explicitly passing queue controller to callbacks Explicitly passing a raw QueueController object is extremely bad design as it leads to inflexibility plus questions about lifetimes and ownership of the pointer. Moreover, with the new multiple permissions work, queue controller is disappearing so using a callback means its replacement can be dropped in without any modifications to the delegates. This CL depends on https://codereview.chromium.org/1343553003/ This CL is also a part of a group of CLs: (1) https://codereview.chromium.org/1332293002 (this) (2) https://codereview.chromium.org/1337903002 (3) https://codereview.chromium.org/1332063003 BUG=516626 Committed: https://crrev.com/152f7f2870e2745de968e9dc21b1ee34099b967c Cr-Commit-Position: refs/heads/master@{#349151}

Patch Set 1 #

Patch Set 2 : Remove unecessary includes #

Total comments: 14

Patch Set 3 : Address review comments and rebase on ProtectedMedia cleanup #

Total comments: 1

Patch Set 4 : Fix nit #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -131 lines) Patch
M chrome/browser/geolocation/geolocation_infobar_delegate.h View 1 2 1 chunk +10 lines, -11 lines 0 comments Download
M chrome/browser/geolocation/geolocation_infobar_delegate.cc View 1 2 1 chunk +8 lines, -10 lines 0 comments Download
M chrome/browser/media/midi_permission_infobar_delegate.h View 1 2 2 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/media/midi_permission_infobar_delegate.cc View 1 2 1 chunk +6 lines, -8 lines 0 comments Download
M chrome/browser/media/protected_media_identifier_infobar_delegate.h View 1 2 2 chunks +9 lines, -10 lines 0 comments Download
M chrome/browser/media/protected_media_identifier_infobar_delegate.cc View 1 2 3 2 chunks +8 lines, -11 lines 0 comments Download
M chrome/browser/notifications/notification_permission_infobar_delegate.h View 1 2 1 chunk +9 lines, -9 lines 0 comments Download
M chrome/browser/notifications/notification_permission_infobar_delegate.cc View 1 2 1 chunk +10 lines, -11 lines 0 comments Download
M chrome/browser/permissions/permission_infobar_delegate.h View 1 2 3 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/permissions/permission_infobar_delegate.cc View 1 2 3 chunks +6 lines, -11 lines 0 comments Download
M chrome/browser/permissions/permission_queue_controller.cc View 1 2 2 chunks +21 lines, -10 lines 0 comments Download
M chrome/browser/storage/durable_storage_permission_infobar_delegate.h View 1 2 2 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/storage/durable_storage_permission_infobar_delegate.cc View 1 2 1 chunk +6 lines, -8 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 16 (4 generated)
Lalit Maganti
Mounir: PTAL when you can.
5 years, 3 months ago (2015-09-11 10:20:47 UTC) #2
mlamouri (slow - plz ping)
https://codereview.chromium.org/1332293002/diff/20001/chrome/browser/media/protected_media_identifier_infobar_delegate.cc File chrome/browser/media/protected_media_identifier_infobar_delegate.cc (right): https://codereview.chromium.org/1332293002/diff/20001/chrome/browser/media/protected_media_identifier_infobar_delegate.cc#newcode52 chrome/browser/media/protected_media_identifier_infobar_delegate.cc:52: void ProtectedMediaIdentifierInfoBarDelegate::SetPermission( Why is that needed? Could it directly ...
5 years, 3 months ago (2015-09-15 12:56:00 UTC) #3
Lalit Maganti
https://codereview.chromium.org/1332293002/diff/20001/chrome/browser/media/protected_media_identifier_infobar_delegate.cc File chrome/browser/media/protected_media_identifier_infobar_delegate.cc (right): https://codereview.chromium.org/1332293002/diff/20001/chrome/browser/media/protected_media_identifier_infobar_delegate.cc#newcode52 chrome/browser/media/protected_media_identifier_infobar_delegate.cc:52: void ProtectedMediaIdentifierInfoBarDelegate::SetPermission( On 2015/09/15 12:55:59, Mounir Lamouri wrote: > ...
5 years, 3 months ago (2015-09-15 13:16:54 UTC) #4
Lalit Maganti
https://codereview.chromium.org/1332293002/diff/20001/chrome/browser/media/protected_media_identifier_infobar_delegate.cc File chrome/browser/media/protected_media_identifier_infobar_delegate.cc (right): https://codereview.chromium.org/1332293002/diff/20001/chrome/browser/media/protected_media_identifier_infobar_delegate.cc#newcode52 chrome/browser/media/protected_media_identifier_infobar_delegate.cc:52: void ProtectedMediaIdentifierInfoBarDelegate::SetPermission( On 2015/09/15 12:55:59, Mounir Lamouri wrote: > ...
5 years, 3 months ago (2015-09-15 14:19:25 UTC) #5
Lalit Maganti
Mounir: PTAL
5 years, 3 months ago (2015-09-15 17:14:56 UTC) #6
mlamouri (slow - plz ping)
lgtm https://codereview.chromium.org/1332293002/diff/40001/chrome/browser/media/protected_media_identifier_infobar_delegate.cc File chrome/browser/media/protected_media_identifier_infobar_delegate.cc (right): https://codereview.chromium.org/1332293002/diff/40001/chrome/browser/media/protected_media_identifier_infobar_delegate.cc#newcode8 chrome/browser/media/protected_media_identifier_infobar_delegate.cc:8: #include "chrome/browser/permissions/permission_request_id.h" nit: remove this include.
5 years, 3 months ago (2015-09-15 17:26:42 UTC) #7
Lalit Maganti
jochen@: could you please take a look at all the non chrome/browser/permissions changes?
5 years, 3 months ago (2015-09-15 17:34:32 UTC) #9
jochen (gone - plz use gerrit)
lgtm
5 years, 3 months ago (2015-09-16 11:20:12 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1332293002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1332293002/80001
5 years, 3 months ago (2015-09-16 16:03:53 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 3 months ago (2015-09-16 17:30:38 UTC) #14
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/152f7f2870e2745de968e9dc21b1ee34099b967c Cr-Commit-Position: refs/heads/master@{#349151}
5 years, 3 months ago (2015-09-16 17:31:26 UTC) #15
commit-bot: I haz the power
5 years, 2 months ago (2015-09-23 12:57:17 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/152f7f2870e2745de968e9dc21b1ee34099b967c
Cr-Commit-Position: refs/heads/master@{#349151}

Powered by Google App Engine
This is Rietveld 408576698