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

Unified Diff: mojo/public/cpp/bindings/lib/associated_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/associated_interface_ptr_state.h
diff --git a/mojo/public/cpp/bindings/lib/associated_interface_ptr_state.h b/mojo/public/cpp/bindings/lib/associated_interface_ptr_state.h
index c2d40a95c586c35e8641e5093f0bd81d92f093eb..9e70d92b2d01ab6df73b7855f381d5a2d52f9e1f 100644
--- a/mojo/public/cpp/bindings/lib/associated_interface_ptr_state.h
+++ b/mojo/public/cpp/bindings/lib/associated_interface_ptr_state.h
@@ -74,10 +74,8 @@ class AssociatedInterfacePtrState {
endpoint_client_->control_message_proxy()->FlushForTesting();
}
- void SendDisconnectReason(uint32_t custom_reason,
- const std::string& description) {
- endpoint_client_->control_message_proxy()->SendDisconnectReason(
- custom_reason, description);
+ void CloseWithReason(uint32_t custom_reason, const std::string& description) {
+ endpoint_client_->CloseWithReason(custom_reason, description);
}
void Swap(AssociatedInterfacePtrState* other) {

Powered by Google App Engine
This is Rietveld 408576698