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

Unified Diff: chrome/test/base/testing_profile.cc

Issue 18647002: Web MIDI: add RequestMIDISysExPermission to BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android build Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index d5218609b49a2e1ff467212bda8b3060d8f48110..cbf8dde57e9ce18943817400e734d87f1582f13b 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -645,6 +645,16 @@ TestingProfile::GetMediaRequestContextForStoragePartition(
return NULL;
}
+void TestingProfile::RequestMIDISysExPermission(
+ int render_process_id,
+ int render_view_id,
+ int client_id,
+ const GURL& requesting_frame,
+ const MIDISysExPermissionCallback& callback) {
+ // Always reject requests for testing.
+ callback.Run(render_process_id, render_view_id, client_id, false);
+}
+
net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() {
if (!extensions_request_context_.get())
extensions_request_context_ = new TestExtensionURLRequestContextGetter();

Powered by Google App Engine
This is Rietveld 408576698