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

Unified Diff: content/browser/presentation/presentation_service_impl.cc

Issue 1199933006: [MediaRouter] wireup send/receive messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: content/browser/presentation/presentation_service_impl.cc
diff --git a/content/browser/presentation/presentation_service_impl.cc b/content/browser/presentation/presentation_service_impl.cc
index 811c31b6574a1cab1e2626e6200f15e0cb892a47..71dff82de900f7a475f9fd5422a85f9e6b38905a 100644
--- a/content/browser/presentation/presentation_service_impl.cc
+++ b/content/browser/presentation/presentation_service_impl.cc
@@ -405,11 +405,11 @@ void PresentationServiceImpl::SendSessionMessage(
weak_factory_.GetWeakPtr()));
}
-void PresentationServiceImpl::OnSendMessageCallback() {
+void PresentationServiceImpl::OnSendMessageCallback(bool sent) {
// It is possible that Reset() is invoked before receiving this callback.
// So, always check send_message_callback_ for non-null.
if (send_message_callback_) {
- send_message_callback_->Run(true);
+ send_message_callback_->Run(sent);
send_message_callback_.reset();
}
}

Powered by Google App Engine
This is Rietveld 408576698