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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationError.cpp

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: third_party/WebKit/Source/modules/presentation/PresentationError.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationError.cpp b/third_party/WebKit/Source/modules/presentation/PresentationError.cpp
index f238e043fc4c53f71c11317c0d5415f81d2fec48..3b1aca0e6bfd325c1560e0f28b4365a11a696f67 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationError.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationError.cpp
@@ -24,6 +24,9 @@ DOMException* PresentationError::take(const WebPresentationError& error) {
case WebPresentationError::ErrorTypeAvailabilityNotSupported:
code = NotSupportedError;
break;
+ case WebPresentationError::ErrorTypePreviousStartInProgress:
+ code = OperationError;
+ break;
case WebPresentationError::ErrorTypeUnknown:
code = UnknownError;
break;

Powered by Google App Engine
This is Rietveld 408576698