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

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

Issue 2643063002: Refactor Blink's ServiceConnector and add ability to mock in layout tests (Closed)
Patch Set: Rebase Created 3 years, 11 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/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 a383c046f6e6385e4672e13c154d4eb1e55b8b5e..661b508ba2abf612b4152452a27c4cac5ea3ce21 100644
--- a/third_party/WebKit/Source/modules/time_zone_monitor/TimeZoneMonitorClient.cpp
+++ b/third_party/WebKit/Source/modules/time_zone_monitor/TimeZoneMonitorClient.cpp
@@ -11,7 +11,7 @@
#include "core/workers/WorkerOrWorkletGlobalScope.h"
#include "core/workers/WorkerThread.h"
#include "platform/CrossThreadFunctional.h"
-#include "platform/ServiceConnector.h"
+#include "public/platform/Connector.h"
#include "public/platform/Platform.h"
#include "services/device/public/interfaces/constants.mojom-blink.h"
#include "third_party/icu/source/i18n/unicode/timezone.h"
@@ -39,7 +39,7 @@ void TimeZoneMonitorClient::Init() {
DEFINE_STATIC_LOCAL(TimeZoneMonitorClient, instance, ());
device::mojom::blink::TimeZoneMonitorPtr monitor;
- ServiceConnector::instance().connectToInterface(
+ Platform::current()->connector()->getInterface(
device::mojom::blink::kServiceName, mojo::MakeRequest(&monitor));
monitor->AddClient(instance.m_binding.CreateInterfacePtrAndBind());
}

Powered by Google App Engine
This is Rietveld 408576698