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

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

Issue 1240763002: CallbackPromiseAdapter types should be more compatible with WebCallbacks (3/3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 4 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 | « Source/modules/presentation/PresentationError.h ('k') | Source/modules/push_messaging/PushError.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/presentation/PresentationError.cpp
diff --git a/Source/modules/presentation/PresentationError.cpp b/Source/modules/presentation/PresentationError.cpp
index bc7ecba5bb6b8e5885d6fef3f822da9b469af4c4..362fe5a76301f4fed89479d54742848cf25251cf 100644
--- a/Source/modules/presentation/PresentationError.cpp
+++ b/Source/modules/presentation/PresentationError.cpp
@@ -13,10 +13,10 @@
namespace blink {
// static
-DOMException* PresentationError::take(ScriptPromiseResolver*, PassOwnPtr<WebPresentationError> error)
+DOMException* PresentationError::take(ScriptPromiseResolver*, const WebPresentationError& error)
{
ExceptionCode code = UnknownError;
- switch (error->errorType) {
+ switch (error.errorType) {
case WebPresentationError::ErrorTypeNoAvailableScreens:
case WebPresentationError::ErrorTypeNoPresentationFound:
code = NotFoundError;
@@ -32,7 +32,7 @@ DOMException* PresentationError::take(ScriptPromiseResolver*, PassOwnPtr<WebPres
break;
}
- return DOMException::create(code, error->message);
+ return DOMException::create(code, error.message);
}
} // namespace blink
« no previous file with comments | « Source/modules/presentation/PresentationError.h ('k') | Source/modules/push_messaging/PushError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698