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

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

Issue 2533073002: [Presentation API] Throw NotAllowedError instead of AbortError when user closes MR dialog (Closed)
Patch Set: Created 4 years, 1 month 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 | « chrome/test/media_router/media_router_integration_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7a62985838598477470e6565083f365edd1a1d31..c40380bc0ea2cc77417089ebf109a1c6c4d26001 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationError.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationError.cpp
@@ -20,7 +20,7 @@ DOMException* PresentationError::take(ScriptPromiseResolver*,
code = NotFoundError;
break;
case WebPresentationError::ErrorTypeSessionRequestCancelled:
- code = AbortError;
+ code = NotAllowedError;
break;
case WebPresentationError::ErrorTypeAvailabilityNotSupported:
code = NotSupportedError;
« no previous file with comments | « chrome/test/media_router/media_router_integration_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698