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

Unified Diff: Source/modules/geolocation/PositionError.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/PositionError.h
diff --git a/Source/modules/geolocation/PositionError.h b/Source/modules/geolocation/PositionError.h
index d604decf836bcf594a57fe52d5d2e72ed36d8717..5be3f08b1043e77ad5ac0861a659a18dffe39329 100644
--- a/Source/modules/geolocation/PositionError.h
+++ b/Source/modules/geolocation/PositionError.h
@@ -28,12 +28,11 @@
#include "bindings/v8/ScriptWrappable.h"
#include "platform/heap/Handle.h"
-#include "wtf/RefCounted.h"
#include "wtf/text/WTFString.h"
namespace WebCore {
-class PositionError : public RefCountedWillBeGarbageCollectedFinalized<PositionError>, public ScriptWrappable {
+class PositionError : public GarbageCollectedFinalized<PositionError>, public ScriptWrappable {
public:
enum ErrorCode {
PERMISSION_DENIED = 1,
@@ -41,7 +40,7 @@ public:
TIMEOUT = 3
};
- static PassRefPtrWillBeRawPtr<PositionError> create(ErrorCode code, const String& message) { return adoptRefWillBeNoop(new PositionError(code, message)); }
+ static PositionError* create(ErrorCode code, const String& message) { return new PositionError(code, message); }
void trace(Visitor*) { }
ErrorCode code() const { return m_code; }

Powered by Google App Engine
This is Rietveld 408576698