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

Unified Diff: content/renderer/presentation/presentation_connection_proxy.cc

Issue 2730123003: [Presentation API] Add layout test for connection.close() and fix test failures (Closed)
Patch Set: remove unnecessary forward declarations Created 3 years, 9 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
« no previous file with comments | « no previous file | content/renderer/presentation/presentation_connection_proxy_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/presentation/presentation_connection_proxy.cc
diff --git a/content/renderer/presentation/presentation_connection_proxy.cc b/content/renderer/presentation/presentation_connection_proxy.cc
index aebff14183ac5a7de998df1213d7c7f8da41c179..c4dc82579649722450463e3477e6a700f4f41dc1 100644
--- a/content/renderer/presentation/presentation_connection_proxy.cc
+++ b/content/renderer/presentation/presentation_connection_proxy.cc
@@ -67,8 +67,7 @@ void PresentationConnectionProxy::DidChangeState(
source_connection_->didChangeState(
blink::WebPresentationConnectionState::Connected);
} else if (state == content::PRESENTATION_CONNECTION_STATE_CLOSED) {
- source_connection_->didChangeState(
- blink::WebPresentationConnectionState::Closed);
+ source_connection_->didClose();
} else {
NOTREACHED();
}
@@ -76,8 +75,7 @@ void PresentationConnectionProxy::DidChangeState(
void PresentationConnectionProxy::OnClose() {
DCHECK(target_connection_ptr_);
- source_connection_->didChangeState(
- blink::WebPresentationConnectionState::Closed);
+ source_connection_->didClose();
target_connection_ptr_->DidChangeState(
content::PRESENTATION_CONNECTION_STATE_CLOSED);
}
« no previous file with comments | « no previous file | content/renderer/presentation/presentation_connection_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698