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

Unified Diff: content/renderer/device_sensors/device_sensor_event_pump.h

Issue 2755813002: Begin to wean child processes off reliance on a persistent service_manager::Connection to the brows… (Closed)
Patch Set: . Created 3 years, 9 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
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/gamepad_shared_memory_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/device_sensors/device_sensor_event_pump.h
diff --git a/content/renderer/device_sensors/device_sensor_event_pump.h b/content/renderer/device_sensors/device_sensor_event_pump.h
index b5859079755c0a8c21a5e60fedbf9f17b722af7d..4643c3c3fcbb80267b64e17717179b958694f1e8 100644
--- a/content/renderer/device_sensors/device_sensor_event_pump.h
+++ b/content/renderer/device_sensors/device_sensor_event_pump.h
@@ -11,10 +11,11 @@
#include "base/memory/shared_memory.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
+#include "content/public/common/service_names.mojom.h"
#include "content/public/renderer/platform_event_observer.h"
#include "content/renderer/render_thread_impl.h"
#include "mojo/public/cpp/system/platform_handle.h"
-#include "services/service_manager/public/cpp/interface_provider.h"
+#include "services/service_manager/public/cpp/connector.h"
namespace content {
@@ -34,8 +35,8 @@ class CONTENT_EXPORT DeviceSensorMojoClientMixin : public Base {
// is ready and the layout tests are converted to use that for mocking.
if (RenderThreadImpl::current() &&
!RenderThreadImpl::current()->layout_test_mode()) {
- RenderThread::Get()->GetRemoteInterfaces()->GetInterface(
- std::move(request));
+ RenderThread::Get()->GetConnector()->BindInterface(
+ mojom::kBrowserServiceName, std::move(request));
}
}
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/gamepad_shared_memory_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698