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

Issue 38043004: Cancel MIDI permission request infobar on MIDIAccess stop. (Closed)

Created:
7 years, 2 months ago by Kibeom Kim (inactive)
Modified:
7 years, 1 month ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, Michael van Ouwerkerk, wjia+watch_chromium.org, Bernhard Bauer, Peter Kasting, xhwang
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Cancel MIDI permission request infobar on MIDIAccess stop. On WebCore::MIDIAccess::stop(), renderer didn't cancel the MIDI permission request infobar. As a result, when an iframe webpage that requested MIDI permission is navigated away, the MIDI infobar is not dismissed, unlike the geolocation infobar. This CL makes the MIDI infobar be dismissed on WebCore::MIDIAccess::stop(). BUG=309893 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231719

Patch Set 1 #

Total comments: 15

Patch Set 2 : Addressed patchset #1 comments #

Patch Set 3 : Removed MidiPermissionContext #

Patch Set 4 : stub CancelMIDISysExPermissionRequest implementation for other files. #

Total comments: 2

Patch Set 5 : Moved empty CancelMIDISysExPermissionRequest implementations to headers #

Total comments: 2

Patch Set 6 : empty line removal #

Total comments: 1

Patch Set 7 : Revert moving empty implementations to headers (talked with jochen) #

Patch Set 8 : rebase #

Patch Set 9 : Delay "requests_.Remove(it.GetCurrentKey());" until we're done using |it|. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -17 lines) Patch
M android_webview/browser/aw_browser_context.h View 1 2 3 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M android_webview/browser/aw_browser_context.cc View 1 2 3 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/media/chrome_midi_permission_context.h View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/media/chrome_midi_permission_context.cc View 1 2 4 chunks +19 lines, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/test/fake_profile.h View 1 2 3 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/test/fake_profile.cc View 1 2 3 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.h View 1 2 3 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/midi_dispatcher_host.h View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/midi_dispatcher_host.cc View 1 2 2 chunks +18 lines, -5 lines 0 comments Download
M content/common/media/midi_messages.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/browser/browser_context.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M content/public/test/test_browser_context.h View 1 2 3 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/test/test_browser_context.cc View 1 2 3 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M content/renderer/media/midi_dispatcher.cc View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -8 lines 0 comments Download
M content/shell/browser/shell_browser_context.h View 1 2 3 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M content/shell/browser/shell_browser_context.cc View 1 2 3 5 6 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Kibeom Kim (inactive)
Mostly parallel to the Geolocation infobar counterpart. Manually tested on Linux by forcing flag. I'll ...
7 years, 2 months ago (2013-10-23 22:48:59 UTC) #1
Peter Kasting
On 2013/10/23 22:48:59, Kibeom Kim wrote: > Added reviewers based on the previous CL. > ...
7 years, 2 months ago (2013-10-23 22:50:46 UTC) #2
Kibeom Kim (inactive)
initial owner breakdown: - palmer@ content/common/media/midi_messages.h - jam@ content/public/browser/* - jochen@ content/browser/renderer_host/render_process_host_impl.cc - bulach@ content/browser/geolocation/geolocation_dispatcher_host.cc ...
7 years, 2 months ago (2013-10-23 23:13:19 UTC) #3
Kibeom Kim (inactive)
https://codereview.chromium.org/38043004/diff/1/content/renderer/media/midi_dispatcher.cc File content/renderer/media/midi_dispatcher.cc (right): https://codereview.chromium.org/38043004/diff/1/content/renderer/media/midi_dispatcher.cc#newcode45 content/renderer/media/midi_dispatcher.cc:45: const WebMIDIPermissionRequest& request) { ddorwin@ or scherkus@ or xhwang@: ...
7 years, 2 months ago (2013-10-23 23:37:30 UTC) #4
ddorwin
https://codereview.chromium.org/38043004/diff/1/content/renderer/media/midi_dispatcher.cc File content/renderer/media/midi_dispatcher.cc (right): https://codereview.chromium.org/38043004/diff/1/content/renderer/media/midi_dispatcher.cc#newcode45 content/renderer/media/midi_dispatcher.cc:45: const WebMIDIPermissionRequest& request) { On 2013/10/23 23:37:31, Kibeom Kim ...
7 years, 2 months ago (2013-10-23 23:52:39 UTC) #5
Kibeom Kim (inactive)
https://codereview.chromium.org/38043004/diff/1/content/renderer/media/midi_dispatcher.cc File content/renderer/media/midi_dispatcher.cc (right): https://codereview.chromium.org/38043004/diff/1/content/renderer/media/midi_dispatcher.cc#newcode45 content/renderer/media/midi_dispatcher.cc:45: const WebMIDIPermissionRequest& request) { On 2013/10/23 23:52:40, ddorwin wrote: ...
7 years, 2 months ago (2013-10-24 00:00:05 UTC) #6
Takashi Toyoshima
Hi Kibeom, thank you for catching this problem. lgtm as an original author. By the ...
7 years, 2 months ago (2013-10-24 01:35:36 UTC) #7
Kibeom Kim (inactive)
> In this CL, you are going to introduce MIDIPermissionContext in content API > instead ...
7 years, 2 months ago (2013-10-24 02:12:12 UTC) #8
Bernhard Bauer
https://codereview.chromium.org/38043004/diff/1/chrome/browser/media/chrome_midi_permission_context.h File chrome/browser/media/chrome_midi_permission_context.h (right): https://codereview.chromium.org/38043004/diff/1/chrome/browser/media/chrome_midi_permission_context.h#newcode34 chrome/browser/media/chrome_midi_permission_context.h:34: virtual void CancelMIDISysExPermissionRequest( Nit: at the beginning of a ...
7 years, 2 months ago (2013-10-24 07:42:04 UTC) #9
bulach
lgtm for content/browser/geolocation/geolocation_dispatcher_host.cc btw, the change in that file was pure whitespace :) whilst I ...
7 years, 2 months ago (2013-10-24 13:06:56 UTC) #10
jam
https://codereview.chromium.org/38043004/diff/1/chrome/browser/media/chrome_midi_permission_context.h File chrome/browser/media/chrome_midi_permission_context.h (right): https://codereview.chromium.org/38043004/diff/1/chrome/browser/media/chrome_midi_permission_context.h#newcode24 chrome/browser/media/chrome_midi_permission_context.h:24: // Request to ask users permission about MIDI. nit: ...
7 years, 2 months ago (2013-10-24 16:15:25 UTC) #11
ddorwin
On 2013/10/24 00:00:05, Kibeom Kim wrote: > https://codereview.chromium.org/38043004/diff/1/content/renderer/media/midi_dispatcher.cc > File content/renderer/media/midi_dispatcher.cc (right): > > https://codereview.chromium.org/38043004/diff/1/content/renderer/media/midi_dispatcher.cc#newcode45 ...
7 years, 2 months ago (2013-10-24 17:30:04 UTC) #12
Elliot Glaysher
profiles lgtm
7 years, 2 months ago (2013-10-24 17:40:53 UTC) #13
Kibeom Kim (inactive)
On 2013/10/24 17:30:04, ddorwin wrote: > ... > We'll also need to find a way ...
7 years, 2 months ago (2013-10-24 17:49:23 UTC) #14
Kibeom Kim (inactive)
https://codereview.chromium.org/38043004/diff/1/chrome/browser/media/chrome_midi_permission_context.h File chrome/browser/media/chrome_midi_permission_context.h (right): https://codereview.chromium.org/38043004/diff/1/chrome/browser/media/chrome_midi_permission_context.h#newcode24 chrome/browser/media/chrome_midi_permission_context.h:24: // Request to ask users permission about MIDI. On ...
7 years, 2 months ago (2013-10-24 19:36:25 UTC) #15
Kibeom Kim (inactive)
On 2013/10/24 02:12:12, Kibeom Kim wrote: > > In this CL, you are going to ...
7 years, 2 months ago (2013-10-24 20:42:33 UTC) #16
Kibeom Kim (inactive)
PTAL. Added BrowserContext::CancelMIDISysExPermissionRequest(...) instead of MidiPermissionContext class. Additional modified files are all just stub implementations ...
7 years, 2 months ago (2013-10-24 21:47:59 UTC) #17
joth
aw/ lgtm rubberstamp
7 years, 2 months ago (2013-10-24 22:06:27 UTC) #18
jam
content public lgtm
7 years, 2 months ago (2013-10-25 00:14:50 UTC) #19
jochen (gone - plz use gerrit)
https://codereview.chromium.org/38043004/diff/290001/content/shell/browser/shell_browser_context.cc File content/shell/browser/shell_browser_context.cc (right): https://codereview.chromium.org/38043004/diff/290001/content/shell/browser/shell_browser_context.cc#newcode199 content/shell/browser/shell_browser_context.cc:199: const GURL& requesting_frame) { why do you need this ...
7 years, 1 month ago (2013-10-25 11:37:08 UTC) #20
Kibeom Kim (inactive)
https://codereview.chromium.org/38043004/diff/290001/content/shell/browser/shell_browser_context.cc File content/shell/browser/shell_browser_context.cc (right): https://codereview.chromium.org/38043004/diff/290001/content/shell/browser/shell_browser_context.cc#newcode199 content/shell/browser/shell_browser_context.cc:199: const GURL& requesting_frame) { On 2013/10/25 11:37:09, jochen wrote: ...
7 years, 1 month ago (2013-10-28 09:43:17 UTC) #21
scherkus (not reviewing)
*/media/* lgtm w/ one nit https://codereview.chromium.org/38043004/diff/450001/chrome/test/base/testing_profile.cc File chrome/test/base/testing_profile.cc (right): https://codereview.chromium.org/38043004/diff/450001/chrome/test/base/testing_profile.cc#newcode710 chrome/test/base/testing_profile.cc:710: remove this extra blank ...
7 years, 1 month ago (2013-10-28 20:48:53 UTC) #22
Kibeom Kim (inactive)
palmer@ : Could you take a look at midi_messages.h? Thanks. https://codereview.chromium.org/38043004/diff/450001/chrome/test/base/testing_profile.cc File chrome/test/base/testing_profile.cc (right): https://codereview.chromium.org/38043004/diff/450001/chrome/test/base/testing_profile.cc#newcode710 ...
7 years, 1 month ago (2013-10-29 10:25:09 UTC) #23
jochen (gone - plz use gerrit)
https://codereview.chromium.org/38043004/diff/680001/content/shell/browser/shell_browser_context.h File content/shell/browser/shell_browser_context.h (right): https://codereview.chromium.org/38043004/diff/680001/content/shell/browser/shell_browser_context.h#newcode56 content/shell/browser/shell_browser_context.h:56: const GURL& requesting_frame) OVERRIDE {} sorry for being not ...
7 years, 1 month ago (2013-10-29 14:17:05 UTC) #24
jochen (gone - plz use gerrit)
lgtm
7 years, 1 month ago (2013-10-29 19:23:52 UTC) #25
palmer
lgtm
7 years, 1 month ago (2013-10-29 20:53:11 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkimlabs@chromium.org/38043004/1060001
7 years, 1 month ago (2013-10-29 21:59:19 UTC) #27
commit-bot: I haz the power
7 years, 1 month ago (2013-10-30 03:18:32 UTC) #28
Message was sent while issue was closed.
Change committed as 231719

Powered by Google App Engine
This is Rietveld 408576698