Index: Source/modules/geolocation/GeolocationError.h |
diff --git a/Source/modules/geolocation/GeolocationError.h b/Source/modules/geolocation/GeolocationError.h |
index 2013782c419cb872f57077a04f862c8276884142..f2997f119dbb50b99069cf0273e926bb8f3638a4 100644 |
--- a/Source/modules/geolocation/GeolocationError.h |
+++ b/Source/modules/geolocation/GeolocationError.h |
@@ -26,22 +26,20 @@ |
#ifndef GeolocationError_h |
#define GeolocationError_h |
-#include "wtf/RefCounted.h" |
-#include "wtf/RefPtr.h" |
#include "wtf/text/WTFString.h" |
namespace WebCore { |
-class GeolocationError : public RefCountedWillBeGarbageCollectedFinalized<GeolocationError> { |
+class GeolocationError : public GarbageCollectedFinalized<GeolocationError> { |
public: |
enum ErrorCode { |
PermissionDenied, |
PositionUnavailable |
}; |
- static PassRefPtrWillBeRawPtr<GeolocationError> create(ErrorCode code, const String& message) |
+ static GeolocationError* create(ErrorCode code, const String& message) |
{ |
- return adoptRefWillBeNoop(new GeolocationError(code, message)); |
+ return new GeolocationError(code, message); |
} |
void trace(Visitor*) { } |