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

Unified Diff: content/public/test/mock_render_thread.cc

Issue 2836813006: Revert of Eliminate ChildThread InterfaceRegistry. (Closed)
Patch Set: Created 3 years, 8 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/public/test/mock_render_thread.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_render_thread.cc
diff --git a/content/public/test/mock_render_thread.cc b/content/public/test/mock_render_thread.cc
index aeb37bb6058b230f5213b89b33d6deece4466e4e..0c02a0d3ce88aa72e948e7fc9e93a1f550239f19 100644
--- a/content/public/test/mock_render_thread.cc
+++ b/content/public/test/mock_render_thread.cc
@@ -19,6 +19,9 @@
#include "ipc/ipc_sync_message.h"
#include "ipc/message_filter.h"
#include "services/service_manager/public/cpp/connector.h"
+#include "services/service_manager/public/cpp/interface_provider.h"
+#include "services/service_manager/public/cpp/interface_registry.h"
+#include "services/service_manager/public/interfaces/interface_provider_spec.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/WebKit/public/web/WebScriptController.h"
@@ -250,6 +253,14 @@
return nullptr;
}
+service_manager::InterfaceRegistry* MockRenderThread::GetInterfaceRegistry() {
+ if (!interface_registry_) {
+ interface_registry_ = base::MakeUnique<service_manager::InterfaceRegistry>(
+ service_manager::mojom::kServiceManager_ConnectorSpec);
+ }
+ return interface_registry_.get();
+}
+
service_manager::Connector* MockRenderThread::GetConnector() {
if (!connector_) {
connector_ =
« no previous file with comments | « content/public/test/mock_render_thread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698