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

Unified Diff: services/shell/public/cpp/lib/interface_provider.cc

Issue 2100693002: Make RenderProcessHost/RenderThread use MojoChildConnection/MojoShellConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rph2
Patch Set: . Created 4 years, 6 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 | « services/shell/public/cpp/interface_provider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/public/cpp/lib/interface_provider.cc
diff --git a/services/shell/public/cpp/lib/interface_provider.cc b/services/shell/public/cpp/lib/interface_provider.cc
index 268c49a46bcf3b03752294258f6a232649f45683..7d7b950d71ab98f1c858003005dc2181246b21dc 100644
--- a/services/shell/public/cpp/lib/interface_provider.cc
+++ b/services/shell/public/cpp/lib/interface_provider.cc
@@ -6,12 +6,15 @@
namespace shell {
-InterfaceProvider::InterfaceProvider() : weak_factory_(this) {}
+InterfaceProvider::InterfaceProvider() : weak_factory_(this) {
+ pending_request_ = GetProxy(&interface_provider_);
+}
InterfaceProvider::~InterfaceProvider() {}
void InterfaceProvider::Bind(mojom::InterfaceProviderPtr interface_provider) {
- DCHECK(!interface_provider_.is_bound());
- interface_provider_ = std::move(interface_provider);
+ DCHECK(pending_request_.is_pending());
+ mojo::FuseInterface(std::move(pending_request_),
+ interface_provider.PassInterface());
}
void InterfaceProvider::SetConnectionLostClosure(
« no previous file with comments | « services/shell/public/cpp/interface_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698