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

Unified Diff: Source/modules/geofencing/GeofencingError.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
Index: Source/modules/geofencing/GeofencingError.cpp
diff --git a/Source/modules/geofencing/GeofencingError.cpp b/Source/modules/geofencing/GeofencingError.cpp
index ed53bcd7dc1c00f53571e5b4732eb9d56c90c0da..83fb24098caeb51341b9459d9f055b9febd8751e 100644
--- a/Source/modules/geofencing/GeofencingError.cpp
+++ b/Source/modules/geofencing/GeofencingError.cpp
@@ -10,13 +10,13 @@
namespace blink {
-DOMException* GeofencingError::take(ScriptPromiseResolver*, PassOwnPtr<WebGeofencingError> webError)
+DOMException* GeofencingError::take(ScriptPromiseResolver*, const WebGeofencingError& webError)
{
- switch (webError->errorType) {
+ switch (webError.errorType) {
case WebGeofencingError::ErrorTypeAbort:
- return DOMException::create(AbortError, webError->message);
+ return DOMException::create(AbortError, webError.message);
case WebGeofencingError::ErrorTypeUnknown:
- return DOMException::create(UnknownError, webError->message);
+ return DOMException::create(UnknownError, webError.message);
}
ASSERT_NOT_REACHED();
return DOMException::create(UnknownError);
« no previous file with comments | « Source/modules/geofencing/GeofencingError.h ('k') | Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698