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

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: Update presentation_service_impl_unittest 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 f6527896aa2837af9ebbcf4ba91a26cfa0607cac..f3870970f70712e3ba73eefc00d2362524f9005c 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