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

Issue 18647002: Web MIDI: add RequestMIDISysExPermission to BrowserContext (Closed)

Created:
7 years, 5 months ago by Takashi Toyoshima
Modified:
7 years, 5 months ago
Reviewers:
jam
CC:
chromium-reviews, asanka, benjhayden+dwatch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, jochen+watch_chromium.org, Chris Rogers
Visibility:
Public.

Description

Web MIDI: add RequestMIDISysExPermission to BrowserContext Add RequestMIDISysExPermission to handle Web MIDI API permissions for system exclusive messages in content embedder. BUG=163795, 257618 TEST=none TBR=benm@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=211437

Patch Set 1 : for review #

Patch Set 2 : method version #

Patch Set 3 : (rebase) #

Patch Set 4 : fix android build #

Total comments: 5

Patch Set 5 : reduce arguments #

Total comments: 8

Patch Set 6 : for commit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -4 lines) Patch
M android_webview/browser/aw_browser_context.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M android_webview/browser/aw_browser_context.cc View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/browser/browser_context.h View 1 2 3 4 5 3 chunks +11 lines, -4 lines 0 comments Download
M content/public/test/test_browser_context.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/test/test_browser_context.cc View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M content/shell/shell_browser_context.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M content/shell/shell_browser_context.cc View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Takashi Toyoshima
Hi jam, I'd like to add new interface into Content API. Can you review this ...
7 years, 5 months ago (2013-07-03 15:47:13 UTC) #1
jam
hi, sorry for the delay in getting to this. a few comments: -it doesn't look ...
7 years, 5 months ago (2013-07-08 20:18:56 UTC) #2
Takashi Toyoshima
> -it doesn't look like you need a separate class? i.e. you can have a ...
7 years, 5 months ago (2013-07-11 09:04:53 UTC) #3
Takashi Toyoshima
I update the API change in Patch Set 2. Can you take a look again?
7 years, 5 months ago (2013-07-11 10:12:27 UTC) #4
jam
https://codereview.chromium.org/18647002/diff/16001/content/public/browser/browser_context.h File content/public/browser/browser_context.h (right): https://codereview.chromium.org/18647002/diff/16001/content/public/browser/browser_context.h#newcode54 content/public/browser/browser_context.h:54: typedef base::Callback<void(int, int, int, bool)> MIDISysExPermissionCallback; it looks like ...
7 years, 5 months ago (2013-07-12 00:16:31 UTC) #5
Takashi Toyoshima
Thanks, currying looks pretty nice to use here. Can you give me another advice on ...
7 years, 5 months ago (2013-07-12 12:45:49 UTC) #6
jam
lgtm with comments https://codereview.chromium.org/18647002/diff/16001/content/public/browser/browser_context.h File content/public/browser/browser_context.h (right): https://codereview.chromium.org/18647002/diff/16001/content/public/browser/browser_context.h#newcode138 content/public/browser/browser_context.h:138: virtual void RequestMIDISysExPermission( On 2013/07/12 12:45:49, ...
7 years, 5 months ago (2013-07-12 16:06:35 UTC) #7
Takashi Toyoshima
Thanks! I'm going to submit this change. https://codereview.chromium.org/18647002/diff/26001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/18647002/diff/26001/android_webview/browser/aw_browser_context.cc#newcode188 android_webview/browser/aw_browser_context.cc:188: // Always ...
7 years, 5 months ago (2013-07-12 16:37:30 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/18647002/36001
7 years, 5 months ago (2013-07-12 16:38:15 UTC) #9
Takashi Toyoshima
Add OWNERS of API users to TBR line.
7 years, 5 months ago (2013-07-12 16:42:33 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/18647002/36001
7 years, 5 months ago (2013-07-12 16:44:46 UTC) #11
commit-bot: I haz the power
Change committed as 211437
7 years, 5 months ago (2013-07-12 19:19:13 UTC) #12
jam
7 years, 5 months ago (2013-07-17 00:00:13 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/18647002/diff/26001/content/shell/shell_brows...
File content/shell/shell_browser_context.cc (right):

https://codereview.chromium.org/18647002/diff/26001/content/shell/shell_brows...
content/shell/shell_browser_context.cc:179: callback.Run(false);
On 2013/07/12 16:37:30, Takashi Toyoshima (chromium) wrote:
> Currently layout test assumes content_shell always reject SysEx permission
> request to verify such a request causes SecurityError. In the future, we'll
make
> this can be set programmatically later.

content_shell is used as both a small browser to try out content & blink, and
also for running layout tests. so you shouldn't disable stuff by default unless
it's running in layout test mode, i.e. change this to

callback.Run(!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree));

Powered by Google App Engine
This is Rietveld 408576698