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

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

Issue 464073002: Pass through geofencing API calls to the content layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix test expectations Created 6 years, 3 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/geofencing/GeofencingError.h ('k') | Source/modules/geofencing/GeofencingRegion.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9bee38669cc2e20c5f9ed02da10dd5ebe14fe1f3..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 WebPushError::ErrorTypeAbort:
+ case WebType::ErrorTypeAbort:
return DOMException::create(AbortError, webError->message);
- case 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;
}
« no previous file with comments | « Source/modules/geofencing/GeofencingError.h ('k') | Source/modules/geofencing/GeofencingRegion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698