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

Unified Diff: Source/modules/filesystem/SyncCallbackHelper.h

Issue 563703002: Oilpan: Enable oilpan for callback classes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/modules/filesystem/SyncCallbackHelper.h
diff --git a/Source/modules/filesystem/SyncCallbackHelper.h b/Source/modules/filesystem/SyncCallbackHelper.h
index 9fecc2ad9ce490f709c2fb20a948893dca2aff15..42999ac8ac4d8e049027f5147dafdb7792415dc6 100644
--- a/Source/modules/filesystem/SyncCallbackHelper.h
+++ b/Source/modules/filesystem/SyncCallbackHelper.h
@@ -83,8 +83,8 @@ public:
return m_result;
}
- PassOwnPtrWillBeRawPtr<SuccessCallback> successCallback() { return SuccessCallbackImpl::create(this); }
- PassOwnPtrWillBeRawPtr<ErrorCallback> errorCallback() { return ErrorCallbackImpl::create(this); }
+ SuccessCallback* successCallback() { return SuccessCallbackImpl::create(this); }
+ ErrorCallback* errorCallback() { return ErrorCallbackImpl::create(this); }
void trace(Visitor* visitor)
{
@@ -100,9 +100,9 @@ private:
class SuccessCallbackImpl FINAL : public SuccessCallback {
public:
- static PassOwnPtrWillBeRawPtr<SuccessCallbackImpl> create(HelperType* helper)
+ static SuccessCallbackImpl* create(HelperType* helper)
{
- return adoptPtrWillBeNoop(new SuccessCallbackImpl(helper));
+ return new SuccessCallbackImpl(helper);
}
virtual void handleEvent()
@@ -125,9 +125,9 @@ private:
class ErrorCallbackImpl FINAL : public ErrorCallback {
public:
- static PassOwnPtrWillBeRawPtr<ErrorCallbackImpl> create(HelperType* helper)
+ static ErrorCallbackImpl* create(HelperType* helper)
{
- return adoptPtrWillBeNoop(new ErrorCallbackImpl(helper));
+ return new ErrorCallbackImpl(helper);
}
virtual void handleEvent(FileError* error) OVERRIDE

Powered by Google App Engine
This is Rietveld 408576698