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

Issue 20990005: Web MIDI: implement permission infobar (Closed)

Created:
7 years, 4 months ago by Takashi Toyoshima
Modified:
7 years, 4 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, markusheintz_
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : add crbug number #

Patch Set 3 : disable icon for now #

Total comments: 41

Patch Set 4 : (rebase) #

Patch Set 5 : review #2 nits #

Total comments: 2

Patch Set 6 : review #3 #

Patch Set 7 : review #5 #

Total comments: 1

Patch Set 8 : (rebase: please wait for the next set) #

Patch Set 9 : review #2 and #10 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+524 lines, -40 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/permission_queue_controller.cc View 1 2 3 4 5 6 chunks +26 lines, -7 lines 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.h View 6 chunks +19 lines, -1 line 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.cc View 1 2 3 4 5 7 chunks +32 lines, -2 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_factory.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/media/chrome_midi_permission_context.h View 1 2 3 4 5 6 7 8 1 chunk +69 lines, -0 lines 0 comments Download
A chrome/browser/media/chrome_midi_permission_context.cc View 1 2 3 4 5 6 7 8 1 chunk +131 lines, -0 lines 0 comments Download
A chrome/browser/media/chrome_midi_permission_context_factory.h View 1 2 3 4 5 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/browser/media/chrome_midi_permission_context_factory.cc View 1 2 3 4 5 6 7 8 1 chunk +46 lines, -0 lines 0 comments Download
A + chrome/browser/media/midi_permission_infobar_delegate.h View 1 2 3 4 5 4 chunks +23 lines, -25 lines 1 comment Download
A chrome/browser/media/midi_permission_infobar_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +96 lines, -0 lines 3 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/midi_dispatcher_host.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/midi_dispatcher_host.cc View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 3 comments Download

Messages

Total messages: 26 (0 generated)
Takashi Toyoshima
Hi Bernhard, Can you take a look this CL? This change handles infobar for Web ...
7 years, 4 months ago (2013-07-31 14:58:49 UTC) #1
Bernhard Bauer
https://chromiumcodereview.appspot.com/20990005/diff/5001/chrome/browser/content_settings/tab_specific_content_settings.cc File chrome/browser/content_settings/tab_specific_content_settings.cc (right): https://chromiumcodereview.appspot.com/20990005/diff/5001/chrome/browser/content_settings/tab_specific_content_settings.cc#newcode505 chrome/browser/content_settings/tab_specific_content_settings.cc:505: // TODO(toyoshim): Bubble iconfor MIDI is disabled for now. ...
7 years, 4 months ago (2013-07-31 15:35:39 UTC) #2
scherkus (not reviewing)
yeah I'm not really familiar with this area of the code, so I have mostly ...
7 years, 4 months ago (2013-07-31 18:09:55 UTC) #3
Takashi Toyoshima
Upload Patch Set 5 containing changes based on comments #2 except for using RefcountedBrowserContextKeyedService. I'll ...
7 years, 4 months ago (2013-08-01 07:43:09 UTC) #4
Bernhard Bauer
https://chromiumcodereview.appspot.com/20990005/diff/5001/chrome/browser/media/chrome_midi_permission_context.cc File chrome/browser/media/chrome_midi_permission_context.cc (right): https://chromiumcodereview.appspot.com/20990005/diff/5001/chrome/browser/media/chrome_midi_permission_context.cc#newcode35 chrome/browser/media/chrome_midi_permission_context.cc:35: if (!content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)) { On 2013/08/01 07:43:09, Takashi Toyoshima (chromium) ...
7 years, 4 months ago (2013-08-01 08:21:27 UTC) #5
Takashi Toyoshima
Upload Patch Set 6 based on review #3. https://chromiumcodereview.appspot.com/20990005/diff/5001/chrome/browser/content_settings/permission_queue_controller.cc File chrome/browser/content_settings/permission_queue_controller.cc (left): https://chromiumcodereview.appspot.com/20990005/diff/5001/chrome/browser/content_settings/permission_queue_controller.cc#oldcode94 chrome/browser/content_settings/permission_queue_controller.cc:94: // ...
7 years, 4 months ago (2013-08-01 08:27:38 UTC) #6
Takashi Toyoshima
Patch Set 7. https://chromiumcodereview.appspot.com/20990005/diff/5001/chrome/browser/media/chrome_midi_permission_context.cc File chrome/browser/media/chrome_midi_permission_context.cc (right): https://chromiumcodereview.appspot.com/20990005/diff/5001/chrome/browser/media/chrome_midi_permission_context.cc#newcode35 chrome/browser/media/chrome_midi_permission_context.cc:35: if (!content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)) { The caller code ...
7 years, 4 months ago (2013-08-01 09:29:45 UTC) #7
Bernhard Bauer
https://chromiumcodereview.appspot.com/20990005/diff/5001/chrome/browser/media/chrome_midi_permission_context.cc File chrome/browser/media/chrome_midi_permission_context.cc (right): https://chromiumcodereview.appspot.com/20990005/diff/5001/chrome/browser/media/chrome_midi_permission_context.cc#newcode35 chrome/browser/media/chrome_midi_permission_context.cc:35: if (!content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)) { On 2013/08/01 09:29:45, Takashi Toyoshima (chromium) ...
7 years, 4 months ago (2013-08-01 11:14:02 UTC) #8
Takashi Toyoshima
> Yes, but who calls BrowserContext::RequestMIDISysExPermission() (which is the > method overridden in ProfileImpl and ...
7 years, 4 months ago (2013-08-01 11:19:24 UTC) #9
Bernhard Bauer
On Thu, Aug 1, 2013 at 1:19 PM, <toyoshim@chromium.org> wrote: > Yes, but who calls ...
7 years, 4 months ago (2013-08-01 11:38:12 UTC) #10
Takashi Toyoshima
Thank you for great advice. I try it.
7 years, 4 months ago (2013-08-01 11:43:16 UTC) #11
Takashi Toyoshima
Thanks! Please take another look again. https://chromiumcodereview.appspot.com/20990005/diff/5001/chrome/browser/media/chrome_midi_permission_context_factory.cc File chrome/browser/media/chrome_midi_permission_context_factory.cc (right): https://chromiumcodereview.appspot.com/20990005/diff/5001/chrome/browser/media/chrome_midi_permission_context_factory.cc#newcode14 chrome/browser/media/chrome_midi_permission_context_factory.cc:14: class Service : ...
7 years, 4 months ago (2013-08-01 15:08:12 UTC) #12
Bernhard Bauer
https://chromiumcodereview.appspot.com/20990005/diff/47001/content/browser/renderer_host/media/midi_dispatcher_host.cc File content/browser/renderer_host/media/midi_dispatcher_host.cc (right): https://chromiumcodereview.appspot.com/20990005/diff/47001/content/browser/renderer_host/media/midi_dispatcher_host.cc#newcode61 content/browser/renderer_host/media/midi_dispatcher_host.cc:61: RenderViewHostImpl::FromID(render_process_id_, render_view_id); I don't think getting the RenderViewHostImpl is ...
7 years, 4 months ago (2013-08-01 15:28:41 UTC) #13
Takashi Toyoshima
https://chromiumcodereview.appspot.com/20990005/diff/47001/content/browser/renderer_host/media/midi_dispatcher_host.cc File content/browser/renderer_host/media/midi_dispatcher_host.cc (right): https://chromiumcodereview.appspot.com/20990005/diff/47001/content/browser/renderer_host/media/midi_dispatcher_host.cc#newcode61 content/browser/renderer_host/media/midi_dispatcher_host.cc:61: RenderViewHostImpl::FromID(render_process_id_, render_view_id); I did like this because the message ...
7 years, 4 months ago (2013-08-01 15:36:25 UTC) #14
Bernhard Bauer
LGTM because the remaining issue might just be me being confused, and if it's not, ...
7 years, 4 months ago (2013-08-01 22:24:32 UTC) #15
scherkus (not reviewing)
lgtm
7 years, 4 months ago (2013-08-01 22:44:46 UTC) #16
Takashi Toyoshima
Thanks. I try to check Send() code separately with reviewers for the area later.
7 years, 4 months ago (2013-08-02 04:20:20 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/20990005/47001
7 years, 4 months ago (2013-08-02 04:21:54 UTC) #18
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=18405
7 years, 4 months ago (2013-08-02 04:35:10 UTC) #19
Takashi Toyoshima
Add TBR=jochen for trivial changes on geolocation and profiles.
7 years, 4 months ago (2013-08-02 05:51:08 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/20990005/47001
7 years, 4 months ago (2013-08-02 05:52:07 UTC) #21
Peter Kasting
Drive-by https://chromiumcodereview.appspot.com/20990005/diff/47001/chrome/browser/media/midi_permission_infobar_delegate.cc File chrome/browser/media/midi_permission_infobar_delegate.cc (right): https://chromiumcodereview.appspot.com/20990005/diff/47001/chrome/browser/media/midi_permission_infobar_delegate.cc#newcode71 chrome/browser/media/midi_permission_infobar_delegate.cc:71: net::FormatUrl(requesting_frame_.GetOrigin(), display_languages_)); Nit: All lines of args must ...
7 years, 4 months ago (2013-08-02 06:00:57 UTC) #22
Takashi Toyoshima
Hi Peter, I'll fix them in the next CL including GeolocationInfoBarDelegate. I'll ask you a ...
7 years, 4 months ago (2013-08-02 07:22:23 UTC) #23
commit-bot: I haz the power
List of reviewers changed. pkasting@chromium.org did a drive-by without LGTM'ing!
7 years, 4 months ago (2013-08-02 08:42:39 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/20990005/47001
7 years, 4 months ago (2013-08-02 09:00:56 UTC) #25
commit-bot: I haz the power
7 years, 4 months ago (2013-08-02 09:06:47 UTC) #26
Message was sent while issue was closed.
Change committed as 215257

Powered by Google App Engine
This is Rietveld 408576698