X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fmodules%2Fgeolocation%2FGeolocationError.h;h=b58d98136e12d3c0fa608f7325589371e0284342;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=23ecb71aa175e18b7390d9f0e86688b7915ccea0;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/modules/geolocation/GeolocationError.h b/src/third_party/WebKit/Source/modules/geolocation/GeolocationError.h index 23ecb71..b58d981 100644 --- a/src/third_party/WebKit/Source/modules/geolocation/GeolocationError.h +++ b/src/third_party/WebKit/Source/modules/geolocation/GeolocationError.h @@ -33,14 +33,18 @@ namespace WebCore { -class GeolocationError : public RefCounted { +class GeolocationError : public RefCountedWillBeGarbageCollectedFinalized { public: enum ErrorCode { PermissionDenied, PositionUnavailable }; - static PassRefPtr create(ErrorCode code, const String& message) { return adoptRef(new GeolocationError(code, message)); } + static PassRefPtrWillBeRawPtr create(ErrorCode code, const String& message) + { + return adoptRefWillBeNoop(new GeolocationError(code, message)); + } + void trace(Visitor*) { } ErrorCode code() const { return m_code; } const String& message() const { return m_message; }