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

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

Issue 314333002: Enable Oilpan by default in modules/filesystem/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove consts from conversion ctor + copy assignment op 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
« no previous file with comments | « Source/modules/filesystem/Metadata.idl ('k') | Source/modules/filesystem/WorkerGlobalScopeFileSystem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/filesystem/SyncCallbackHelper.h
diff --git a/Source/modules/filesystem/SyncCallbackHelper.h b/Source/modules/filesystem/SyncCallbackHelper.h
index 4edb746050151409db1ab72d6f774be01034b5ea..76b8ae31951d7b7b955fd75e4f93acfbf7f1dd91 100644
--- a/Source/modules/filesystem/SyncCallbackHelper.h
+++ b/Source/modules/filesystem/SyncCallbackHelper.h
@@ -53,8 +53,8 @@ template <typename ResultType, typename CallbackArg>
struct HelperResultType {
DISALLOW_ALLOCATION();
public:
- typedef PassRefPtrWillBeRawPtr<ResultType> ReturnType;
- typedef RefPtrWillBePersistent<ResultType> StorageType;
+ typedef ResultType* ReturnType;
+ typedef Persistent<ResultType> StorageType;
static ReturnType createFromCallbackArg(CallbackArg argument)
{
@@ -157,10 +157,10 @@ private:
bool m_completed;
};
-struct EmptyType : public RefCountedWillBeGarbageCollected<EmptyType> {
- static PassRefPtrWillBeRawPtr<EmptyType> create(EmptyType*)
+struct EmptyType : public GarbageCollected<EmptyType> {
+ static EmptyType* create(EmptyType*)
{
- return nullptr;
+ return 0;
}
void trace(Visitor*) { }
« no previous file with comments | « Source/modules/filesystem/Metadata.idl ('k') | Source/modules/filesystem/WorkerGlobalScopeFileSystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698