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

Unified Diff: content/browser/service_worker/embedded_worker_test_helper.cc

Issue 2456493003: Add frame-specific InterfaceProviderSpec. (Closed)
Patch Set: . Created 4 years, 2 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/browser/service_worker/embedded_worker_instance.cc ('k') | content/child/child_thread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/embedded_worker_test_helper.cc
diff --git a/content/browser/service_worker/embedded_worker_test_helper.cc b/content/browser/service_worker/embedded_worker_test_helper.cc
index 5e1788501d33270b7af4717157bdac2a803c5534..dd776ebe2bd60cc9d005c83a7212f44075d05aea 100644
--- a/content/browser/service_worker/embedded_worker_test_helper.cc
+++ b/content/browser/service_worker/embedded_worker_test_helper.cc
@@ -530,9 +530,11 @@ void EmbeddedWorkerTestHelper::OnSetupMojoStub(
int thread_id,
service_manager::mojom::InterfaceProviderRequest request,
service_manager::mojom::InterfaceProviderPtr remote_interfaces) {
- auto local = base::MakeUnique<service_manager::InterfaceRegistry>(
- service_manager::Identity(), service_manager::InterfaceProviderSpec());
+ auto local =
+ base::MakeUnique<service_manager::InterfaceRegistry>(std::string());
local->Bind(std::move(request), service_manager::Identity(),
+ service_manager::InterfaceProviderSpec(),
+ service_manager::Identity(),
service_manager::InterfaceProviderSpec());
std::unique_ptr<service_manager::InterfaceProvider> remote(
@@ -559,8 +561,8 @@ EmbeddedWorkerTestHelper::NewMessagePortMessageFilter() {
std::unique_ptr<service_manager::InterfaceRegistry>
EmbeddedWorkerTestHelper::CreateInterfaceRegistry(MockRenderProcessHost* rph) {
- auto registry = base::MakeUnique<service_manager::InterfaceRegistry>(
- service_manager::Identity(), service_manager::InterfaceProviderSpec());
+ auto registry =
+ base::MakeUnique<service_manager::InterfaceRegistry>(std::string());
registry->AddInterface(
base::Bind(&MockEmbeddedWorkerSetup::Create, AsWeakPtr()));
registry->AddInterface(
@@ -568,6 +570,8 @@ EmbeddedWorkerTestHelper::CreateInterfaceRegistry(MockRenderProcessHost* rph) {
service_manager::mojom::InterfaceProviderPtr interfaces;
registry->Bind(mojo::GetProxy(&interfaces), service_manager::Identity(),
+ service_manager::InterfaceProviderSpec(),
+ service_manager::Identity(),
service_manager::InterfaceProviderSpec());
std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces(
« no previous file with comments | « content/browser/service_worker/embedded_worker_instance.cc ('k') | content/child/child_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698