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

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

Issue 2435243002: [Presentation API] add 'connecting' state to WebPresentationConnectionState (Closed)
Patch Set: resolve code review comments from mlamouri Created 4 years, 2 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 | third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/presentation/presentation_dispatcher.cc
diff --git a/content/renderer/presentation/presentation_dispatcher.cc b/content/renderer/presentation/presentation_dispatcher.cc
index 1299a45e107df015ec592635507dd02a293c60d4..325cac65c7892474fdff2f974d21d4bd3557c4bf 100644
--- a/content/renderer/presentation/presentation_dispatcher.cc
+++ b/content/renderer/presentation/presentation_dispatcher.cc
@@ -45,7 +45,8 @@ blink::WebPresentationError::ErrorType GetWebPresentationErrorTypeFromMojo(
blink::WebPresentationConnectionState GetWebPresentationConnectionStateFromMojo(
blink::mojom::PresentationConnectionState mojoSessionState) {
switch (mojoSessionState) {
- // TODO(imcheng): Add Connecting state to Blink (crbug.com/575351).
+ case blink::mojom::PresentationConnectionState::CONNECTING:
+ return blink::WebPresentationConnectionState::Connecting;
case blink::mojom::PresentationConnectionState::CONNECTED:
return blink::WebPresentationConnectionState::Connected;
case blink::mojom::PresentationConnectionState::CLOSED:
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698