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

Unified Diff: mojo/public/cpp/bindings/lib/associated_binding.cc

Issue 2646853003: Mojo C++ bindings: Simplify associated interface API. (Closed)
Patch Set: . Created 3 years, 10 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 | « mojo/public/cpp/bindings/interface_request.h ('k') | mojo/public/cpp/bindings/lib/associated_group.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/lib/associated_binding.cc
diff --git a/mojo/public/cpp/bindings/lib/associated_binding.cc b/mojo/public/cpp/bindings/lib/associated_binding.cc
index f504b7591229564634eaf8d54fc1ad81e2370d42..6788e68e071b3b893e674d5f67e58c1066b2a079 100644
--- a/mojo/public/cpp/bindings/lib/associated_binding.cc
+++ b/mojo/public/cpp/bindings/lib/associated_binding.cc
@@ -39,7 +39,7 @@ void AssociatedBindingBase::set_connection_error_with_reason_handler(
}
void AssociatedBindingBase::FlushForTesting() {
- endpoint_client_->control_message_proxy()->FlushForTesting();
+ endpoint_client_->FlushForTesting();
}
void AssociatedBindingBase::BindImpl(
@@ -49,11 +49,7 @@ void AssociatedBindingBase::BindImpl(
bool expect_sync_requests,
scoped_refptr<base::SingleThreadTaskRunner> runner,
uint32_t interface_version) {
- DCHECK(handle.is_local())
- << "The AssociatedInterfaceRequest is supposed to be used at the "
- << "other side of the message pipe.";
-
- if (!handle.is_valid() || !handle.is_local()) {
+ if (!handle.is_valid()) {
endpoint_client_.reset();
return;
}
« no previous file with comments | « mojo/public/cpp/bindings/interface_request.h ('k') | mojo/public/cpp/bindings/lib/associated_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698