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

Unified Diff: third_party/WebKit/Source/modules/time_zone_monitor/TimeZoneMonitorClient.cpp

Issue 2589493006: Revert of Enable connection to Mojo services from Blink (Closed)
Patch Set: Created 4 years 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/time_zone_monitor/TimeZoneMonitorClient.cpp
diff --git a/third_party/WebKit/Source/modules/time_zone_monitor/TimeZoneMonitorClient.cpp b/third_party/WebKit/Source/modules/time_zone_monitor/TimeZoneMonitorClient.cpp
index c03a1e7357ca6b5404398407b0081f7374a6a5ea..4d211c04e70bc8cabc4f3e8549b5a2c931416a5d 100644
--- a/third_party/WebKit/Source/modules/time_zone_monitor/TimeZoneMonitorClient.cpp
+++ b/third_party/WebKit/Source/modules/time_zone_monitor/TimeZoneMonitorClient.cpp
@@ -10,9 +10,8 @@
#include "core/dom/ExecutionContextTask.h"
#include "core/workers/WorkerBackingThread.h"
#include "core/workers/WorkerThread.h"
-#include "platform/ServiceConnector.h"
+#include "public/platform/InterfaceProvider.h"
#include "public/platform/Platform.h"
-#include "services/device/public/interfaces/constants.mojom-blink.h"
#include "third_party/icu/source/i18n/unicode/timezone.h"
#include <v8.h>
@@ -37,8 +36,8 @@
DEFINE_STATIC_LOCAL(TimeZoneMonitorClient, instance, ());
device::mojom::blink::TimeZoneMonitorPtr monitor;
- ServiceConnector::instance().connectToInterface(
- device::mojom::blink::kServiceName, mojo::GetProxy(&monitor));
+ Platform::current()->interfaceProvider()->getInterface(
+ mojo::GetProxy(&monitor));
monitor->AddClient(instance.m_binding.CreateInterfacePtrAndBind());
}
« no previous file with comments | « third_party/WebKit/Source/modules/time_zone_monitor/DEPS ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698