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

Unified Diff: Source/modules/geolocation/GeofencingError.cpp

Issue 393533002: Pass through the geofencing API calls to the content layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@geofencing2
Patch Set: Created 6 years, 5 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/geolocation/GeofencingError.cpp
diff --git a/Source/modules/push_messaging/PushError.cpp b/Source/modules/geolocation/GeofencingError.cpp
similarity index 56%
copy from Source/modules/push_messaging/PushError.cpp
copy to Source/modules/geolocation/GeofencingError.cpp
index 8b5e93e83a6827fbceeeda8b449d0df9a0eedb86..3b4e708249da1773a37ec264c546ad7349775f8f 100644
--- a/Source/modules/push_messaging/PushError.cpp
+++ b/Source/modules/geolocation/GeofencingError.cpp
@@ -3,21 +3,21 @@
// found in the LICENSE file.
#include "config.h"
-#include "modules/push_messaging/PushError.h"
+#include "modules/geolocation/GeofencingError.h"
#include "core/dom/ExceptionCode.h"
#include "wtf/OwnPtr.h"
namespace WebCore {
-PassRefPtrWillBeRawPtr<DOMException> PushError::from(ScriptPromiseResolver*, WebType* webErrorRaw)
+PassRefPtrWillBeRawPtr<DOMException> GeofencingError::from(ScriptPromiseResolver*, WebType* webErrorRaw)
{
OwnPtr<WebType> webError = adoptPtr(webErrorRaw);
switch (webError->errorType) {
- case blink::WebPushError::ErrorTypeAbort:
- return DOMException::create(AbortError, "Registration failed.");
- case blink::WebPushError::ErrorTypeUnknown:
- return DOMException::create(UnknownError);
+ case WebType::ErrorTypeAbort:
+ return DOMException::create(AbortError, webError->message);
+ case WebType::ErrorTypeUnknown:
+ return DOMException::create(UnknownError, webError->message);
}
ASSERT_NOT_REACHED();
return DOMException::create(UnknownError);

Powered by Google App Engine
This is Rietveld 408576698