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

Unified Diff: Source/modules/geolocation/GeolocationError.h

Issue 319863003: Enable Oilpan for modules/geolocation by default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/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*) { }

Powered by Google App Engine
This is Rietveld 408576698