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

Unified Diff: third_party/WebKit/Source/modules/nfc/NFC.cpp

Issue 2196843003: Blink ServiceRegistry -> InterfaceProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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: third_party/WebKit/Source/modules/nfc/NFC.cpp
diff --git a/third_party/WebKit/Source/modules/nfc/NFC.cpp b/third_party/WebKit/Source/modules/nfc/NFC.cpp
index c3712d71d4c3b16d7504571ef7ddca3dc2db5e49..5ddc7ec50e0a55f5d0ca3b800fa872b62857dbcf 100644
--- a/third_party/WebKit/Source/modules/nfc/NFC.cpp
+++ b/third_party/WebKit/Source/modules/nfc/NFC.cpp
@@ -16,7 +16,7 @@
#include "modules/nfc/NFCMessage.h"
#include "modules/nfc/NFCPushOptions.h"
#include "platform/mojo/MojoHelper.h"
-#include "public/platform/ServiceRegistry.h"
+#include "public/platform/InterfaceProvider.h"
namespace nfc = device::nfc::blink;
@@ -443,7 +443,7 @@ NFC::NFC(LocalFrame* frame)
, m_client(this)
{
ThreadState::current()->registerPreFinalizer(this);
- frame->serviceRegistry()->connectToRemoteService(mojo::GetProxy(&m_nfc));
+ frame->interfaceProvider()->getInterface(mojo::GetProxy(&m_nfc));
m_nfc.set_connection_error_handler(convertToBaseCallback(WTF::bind(&NFC::OnConnectionError, wrapWeakPersistent(this))));
m_nfc->SetClient(m_client.CreateInterfacePtrAndBind());
}

Powered by Google App Engine
This is Rietveld 408576698