Index: content/shell/shell_browser_context.cc |
diff --git a/content/shell/shell_browser_context.cc b/content/shell/shell_browser_context.cc |
index 281862fc0ede8e86907673282eb84daed6015b13..58b966c2ecd976fafb1e1b6c85e649a88b06c644 100644 |
--- a/content/shell/shell_browser_context.cc |
+++ b/content/shell/shell_browser_context.cc |
@@ -175,8 +175,13 @@ void ShellBrowserContext::RequestMIDISysExPermission( |
int render_view_id, |
const GURL& requesting_frame, |
const MIDISysExPermissionCallback& callback) { |
- // Always reject requests for testing. |
+ // Always reject requests for LayoutTests for now. |
// TODO(toyoshim): Make it programmable to improve test coverage. |
+ if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) { |
+ callback.Run(false); |
+ return; |
+ } |
+ // TODO(toyoshim): Implement. http://crbug.com/257618 . |
callback.Run(false); |
} |