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

Unified Diff: Source/modules/filesystem/Metadata.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
Index: Source/modules/filesystem/Metadata.h
diff --git a/Source/modules/filesystem/Metadata.h b/Source/modules/filesystem/Metadata.h
index 2a25f044705e1542d0f9d09cff3d248e09ec0418..683793c6aaeb469bfe0e7f5a1e7e5917fb07ad8a 100644
--- a/Source/modules/filesystem/Metadata.h
+++ b/Source/modules/filesystem/Metadata.h
@@ -34,20 +34,19 @@
#include "bindings/v8/ScriptWrappable.h"
#include "platform/FileMetadata.h"
#include "platform/heap/Handle.h"
-#include "wtf/RefCounted.h"
namespace WebCore {
-class Metadata : public RefCountedWillBeGarbageCollectedFinalized<Metadata>, public ScriptWrappable {
+class Metadata : public GarbageCollectedFinalized<Metadata>, public ScriptWrappable {
public:
- static PassRefPtrWillBeRawPtr<Metadata> create(const FileMetadata& platformMetadata)
+ static Metadata* create(const FileMetadata& platformMetadata)
{
- return adoptRefWillBeNoop(new Metadata(platformMetadata));
+ return new Metadata(platformMetadata);
}
- static PassRefPtrWillBeRawPtr<Metadata> create(Metadata* metadata)
+ static Metadata* create(Metadata* metadata)
{
- return adoptRefWillBeNoop(new Metadata(metadata->m_platformMetadata));
+ return new Metadata(metadata->m_platformMetadata);
}
// Needs to return epoch time in milliseconds for Date while FileMetadata's modificationTime is in seconds.
« no previous file with comments | « Source/modules/filesystem/InspectorFrontendHostFileSystem.cpp ('k') | Source/modules/filesystem/Metadata.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698