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

Unified Diff: content/shell/renderer/layout_test/blink_test_runner.cc

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/renderer_blink_platform_impl.cc ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/layout_test/blink_test_runner.cc
diff --git a/content/shell/renderer/layout_test/blink_test_runner.cc b/content/shell/renderer/layout_test/blink_test_runner.cc
index 8e04816bc786ab8ddf5a7674d0119bf7bb314d60..184679565c30569a3a0a269418578c93514d938c 100644
--- a/content/shell/renderer/layout_test/blink_test_runner.cc
+++ b/content/shell/renderer/layout_test/blink_test_runner.cc
@@ -33,6 +33,7 @@
#include "components/plugins/renderer/plugin_placeholder.h"
#include "content/common/content_switches_internal.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/service_names.mojom.h"
#include "content/public/common/url_constants.h"
#include "content/public/common/web_preferences.h"
#include "content/public/renderer/media_stream_utils.h"
@@ -60,7 +61,7 @@
#include "media/media_features.h"
#include "net/base/filename_util.h"
#include "net/base/net_errors.h"
-#include "services/service_manager/public/cpp/interface_provider.h"
+#include "services/service_manager/public/cpp/connector.h"
#include "services/service_manager/public/cpp/interface_registry.h"
#include "skia/ext/platform_canvas.h"
#include "third_party/WebKit/public/platform/FilePathConversion.h"
@@ -944,7 +945,8 @@ void BlinkTestRunner::CaptureDumpComplete() {
mojom::LayoutTestBluetoothFakeAdapterSetter&
BlinkTestRunner::GetBluetoothFakeAdapterSetter() {
if (!bluetooth_fake_adapter_setter_) {
- RenderThread::Get()->GetRemoteInterfaces()->GetInterface(
+ RenderThread::Get()->GetConnector()->BindInterface(
+ mojom::kBrowserServiceName,
mojo::MakeRequest(&bluetooth_fake_adapter_setter_));
}
return *bluetooth_fake_adapter_setter_;
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698