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

Unified Diff: mojo/public/cpp/bindings/lib/interface_ptr_state.h

Issue 2649573004: Mojo bindings: merge the control messages of sending disconnect reason and notifying endpoint close… (Closed)
Patch Set: Created 3 years, 11 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
Index: mojo/public/cpp/bindings/lib/interface_ptr_state.h
diff --git a/mojo/public/cpp/bindings/lib/interface_ptr_state.h b/mojo/public/cpp/bindings/lib/interface_ptr_state.h
index f4c63d2f022291ec748b1602c0a07fc46354c9bb..76f195d91f51414dcceb5824c4bc47a0c80abd76 100644
--- a/mojo/public/cpp/bindings/lib/interface_ptr_state.h
+++ b/mojo/public/cpp/bindings/lib/interface_ptr_state.h
@@ -79,11 +79,9 @@ class InterfacePtrState {
endpoint_client_->control_message_proxy()->FlushForTesting();
}
- void SendDisconnectReason(uint32_t custom_reason,
- const std::string& description) {
+ void CloseWithReason(uint32_t custom_reason, const std::string& description) {
ConfigureProxyIfNecessary();
- endpoint_client_->control_message_proxy()->SendDisconnectReason(
- custom_reason, description);
+ endpoint_client_->CloseWithReason(custom_reason, description);
}
void Swap(InterfacePtrState* other) {

Powered by Google App Engine
This is Rietveld 408576698