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

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

Issue 2484273003: [Presentation API] (1-UA) fire PresentationConnection onterminate event if receiver page gets destr… (Closed)
Patch Set: merge with master 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
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 a7f9277425495cf896ebeef4e0b62b78a6cfe017..f0b722fe4490cb286304a708408b22e775f781fd 100644
--- a/content/browser/presentation/presentation_service_impl.cc
+++ b/content/browser/presentation/presentation_service_impl.cc
@@ -557,6 +557,13 @@ void PresentationServiceImpl::Reset() {
if (auto* delegate = GetPresentationServiceDelegate())
delegate->Reset(render_process_id_, render_frame_id_);
+ if (receiver_delegate_) {
+ PresentationSessionInfo dummy_session(GURL("fake_url"), "fake_id");
mark a. foltz 2017/02/25 01:43:12 This is another case where having separate mojoms
zhaobin 2017/02/28 04:25:19 Removed :)
+ OnConnectionStateChanged(dummy_session,
+ PresentationConnectionStateChangeInfo(
+ PRESENTATION_CONNECTION_STATE_TERMINATED));
+ }
+
default_presentation_urls_.clear();
screen_availability_listeners_.clear();

Powered by Google App Engine
This is Rietveld 408576698