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

Unified Diff: Source/modules/filesystem/LocalFileSystem.cpp

Issue 255983003: Oilpan: Move all supplements of Page, Document, and WorkerClients to the managed heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments Created 6 years, 8 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/LocalFileSystem.cpp
diff --git a/Source/modules/filesystem/LocalFileSystem.cpp b/Source/modules/filesystem/LocalFileSystem.cpp
index 611ba4b4d028e0a5313131e7fcfc9fe04a4c557e..98d046d5beecfa556938bcf35821c9b5f255a86a 100644
--- a/Source/modules/filesystem/LocalFileSystem.cpp
+++ b/Source/modules/filesystem/LocalFileSystem.cpp
@@ -55,9 +55,9 @@ void fileSystemNotAllowed(ExecutionContext*, PassOwnPtr<AsyncFileSystemCallbacks
} // namespace
-PassOwnPtr<LocalFileSystem> LocalFileSystem::create(PassOwnPtr<FileSystemClient> client)
+PassOwnPtrWillBeRawPtr<LocalFileSystem> LocalFileSystem::create(PassOwnPtr<FileSystemClient> client)
{
- return adoptPtr(new LocalFileSystem(client));
+ return adoptPtrWillBeNoop(new LocalFileSystem(client));
}
LocalFileSystem::~LocalFileSystem()
@@ -109,10 +109,10 @@ const char* LocalFileSystem::supplementName()
LocalFileSystem* LocalFileSystem::from(ExecutionContext& context)
{
if (context.isDocument()) {
- return static_cast<LocalFileSystem*>(Supplement<Page>::from(toDocument(context).page(), supplementName()));
+ return static_cast<LocalFileSystem*>(WillBeHeapSupplement<Page>::from(toDocument(context).page(), supplementName()));
}
ASSERT(context.isWorkerGlobalScope());
- return static_cast<LocalFileSystem*>(Supplement<WorkerClients>::from(toWorkerGlobalScope(context).clients(), supplementName()));
+ return static_cast<LocalFileSystem*>(WillBeHeapSupplement<WorkerClients>::from(toWorkerGlobalScope(context).clients(), supplementName()));
}
void provideLocalFileSystemTo(Page& page, PassOwnPtr<FileSystemClient> client)

Powered by Google App Engine
This is Rietveld 408576698