| Index: Source/modules/geofencing/GeofencingError.cpp
|
| diff --git a/Source/modules/push_messaging/PushError.cpp b/Source/modules/geofencing/GeofencingError.cpp
|
| similarity index 61%
|
| copy from Source/modules/push_messaging/PushError.cpp
|
| copy to Source/modules/geofencing/GeofencingError.cpp
|
| index 6b829f775ad96be4b1350db3d1eaeb69938398b3..7accf339b1b07a758894c616de0afb7621727594 100644
|
| --- a/Source/modules/push_messaging/PushError.cpp
|
| +++ b/Source/modules/geofencing/GeofencingError.cpp
|
| @@ -3,27 +3,27 @@
|
| // found in the LICENSE file.
|
|
|
| #include "config.h"
|
| -#include "modules/push_messaging/PushError.h"
|
| +#include "modules/geofencing/GeofencingError.h"
|
|
|
| #include "core/dom/ExceptionCode.h"
|
| #include "wtf/OwnPtr.h"
|
|
|
| namespace blink {
|
|
|
| -PassRefPtrWillBeRawPtr<DOMException> PushError::take(ScriptPromiseResolver*, WebType* webErrorRaw)
|
| +PassRefPtrWillBeRawPtr<DOMException> GeofencingError::take(ScriptPromiseResolver*, WebType* webErrorRaw)
|
| {
|
| OwnPtr<WebType> webError = adoptPtr(webErrorRaw);
|
| switch (webError->errorType) {
|
| - case blink::WebPushError::ErrorTypeAbort:
|
| + case WebType::ErrorTypeAbort:
|
| return DOMException::create(AbortError, webError->message);
|
| - case blink::WebPushError::ErrorTypeUnknown:
|
| - return DOMException::create(UnknownError);
|
| + case WebType::ErrorTypeUnknown:
|
| + return DOMException::create(UnknownError, webError->message);
|
| }
|
| ASSERT_NOT_REACHED();
|
| return DOMException::create(UnknownError);
|
| }
|
|
|
| -void PushError::dispose(WebType* webErrorRaw)
|
| +void GeofencingError::dispose(WebType* webErrorRaw)
|
| {
|
| delete webErrorRaw;
|
| }
|
|
|