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

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

Issue 2647723002: [Presentation API] reject request.start() with OperationError instead of UnknownError if previous s… (Closed)
Patch Set: add layout test for PREVIOUS_START_IN_PROGRESS error Created 3 years, 11 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/renderer/presentation/presentation_dispatcher.cc
diff --git a/content/renderer/presentation/presentation_dispatcher.cc b/content/renderer/presentation/presentation_dispatcher.cc
index 3d18e10a30a50942721b25bbc21e37315c027ead..8d391d844dee26c86a0c074cd3c732d1b3722eb9 100644
--- a/content/renderer/presentation/presentation_dispatcher.cc
+++ b/content/renderer/presentation/presentation_dispatcher.cc
@@ -54,6 +54,8 @@ blink::WebPresentationError::ErrorType GetWebPresentationErrorTypeFromMojo(
return blink::WebPresentationError::ErrorTypeSessionRequestCancelled;
case blink::mojom::PresentationErrorType::NO_PRESENTATION_FOUND:
return blink::WebPresentationError::ErrorTypeNoPresentationFound;
+ case blink::mojom::PresentationErrorType::PREVIOUS_START_IN_PROGRESS:
+ return blink::WebPresentationError::ErrorTypePreviousStartInProgress;
case blink::mojom::PresentationErrorType::UNKNOWN:
default:
return blink::WebPresentationError::ErrorTypeUnknown;
« no previous file with comments | « content/public/common/presentation_session.h ('k') | third_party/WebKit/LayoutTests/presentation/presentation-start.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698