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

Unified Diff: third_party/WebKit/Source/modules/geolocation/Geolocation.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/geolocation/Geolocation.cpp
diff --git a/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp b/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
index bccab75711e7d38917d779f3e005a81f1487e61a..f034d18833a9699255aac5c5b3036c8ec3d10783 100644
--- a/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
+++ b/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
@@ -35,7 +35,7 @@
#include "modules/geolocation/GeolocationError.h"
#include "platform/UserGestureIndicator.h"
#include "platform/mojo/MojoHelper.h"
-#include "public/platform/ServiceRegistry.h"
+#include "public/platform/InterfaceProvider.h"
#include "wtf/Assertions.h"
#include "wtf/CurrentTime.h"
@@ -421,8 +421,7 @@ void Geolocation::requestPermission()
return;
m_geolocationPermission = PermissionRequested;
- frame->serviceRegistry()->connectToRemoteService(
- mojo::GetProxy(&m_permissionService));
+ frame->interfaceProvider()->getInterface(mojo::GetProxy(&m_permissionService));
m_permissionService.set_connection_error_handler(convertToBaseCallback(WTF::bind(&Geolocation::onPermissionConnectionError, wrapWeakPersistent(this))));
// Ask the embedder: it maintains the geolocation challenge policy itself.
@@ -494,7 +493,7 @@ void Geolocation::updateGeolocationServiceConnection()
if (m_geolocationService)
return;
- frame()->serviceRegistry()->connectToRemoteService(mojo::GetProxy(&m_geolocationService));
+ frame()->interfaceProvider()->getInterface(mojo::GetProxy(&m_geolocationService));
m_geolocationService.set_connection_error_handler(convertToBaseCallback(WTF::bind(&Geolocation::onGeolocationConnectionError, wrapWeakPersistent(this))));
if (m_enableHighAccuracy)
m_geolocationService->SetHighAccuracy(true);

Powered by Google App Engine
This is Rietveld 408576698