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

Unified Diff: content/renderer/media/midi_dispatcher.cc

Issue 2079943002: Change RenderFrame to use InterfaceRegistry et al. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a2
Patch Set: . Created 4 years, 6 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: content/renderer/media/midi_dispatcher.cc
diff --git a/content/renderer/media/midi_dispatcher.cc b/content/renderer/media/midi_dispatcher.cc
index a7124987dcdb48c5ff22a2883100fc5098e0abf7..f870105dee791f045008c9d36cdd4e0eaf8d4372 100644
--- a/content/renderer/media/midi_dispatcher.cc
+++ b/content/renderer/media/midi_dispatcher.cc
@@ -5,8 +5,8 @@
#include "content/renderer/media/midi_dispatcher.h"
#include "base/bind.h"
-#include "content/public/common/service_registry.h"
#include "content/public/renderer/render_frame.h"
+#include "services/shell/public/cpp/interface_provider.h"
#include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/WebKit/public/web/WebUserGestureIndicator.h"
@@ -31,10 +31,8 @@ void MidiDispatcher::OnDestruct() {
void MidiDispatcher::requestPermission(const WebMIDIPermissionRequest& request,
const WebMIDIOptions& options) {
- if (!permission_service_.get()) {
- render_frame()->GetServiceRegistry()->ConnectToRemoteService(
- mojo::GetProxy(&permission_service_));
- }
+ if (!permission_service_.get())
+ render_frame()->GetRemoteInterfaces()->GetInterface(&permission_service_);
int permission_request_id =
requests_.Add(new WebMIDIPermissionRequest(request));
« no previous file with comments | « content/renderer/bluetooth/web_bluetooth_impl.cc ('k') | content/renderer/mojo/blink_service_registry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698