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()); |
} |