Index: Source/modules/filesystem/LocalFileSystem.cpp |
diff --git a/Source/modules/filesystem/LocalFileSystem.cpp b/Source/modules/filesystem/LocalFileSystem.cpp |
index 750a7677cf86bef115b03b58d1c016c871a65c61..611ba4b4d028e0a5313131e7fcfc9fe04a4c557e 100644 |
--- a/Source/modules/filesystem/LocalFileSystem.cpp |
+++ b/Source/modules/filesystem/LocalFileSystem.cpp |
@@ -106,19 +106,19 @@ const char* LocalFileSystem::supplementName() |
return "LocalFileSystem"; |
} |
-LocalFileSystem* LocalFileSystem::from(ExecutionContext* context) |
+LocalFileSystem* LocalFileSystem::from(ExecutionContext& context) |
{ |
- if (context->isDocument()) { |
- return static_cast<LocalFileSystem*>(Supplement<Page>::from(toDocument(context)->page(), supplementName())); |
+ if (context.isDocument()) { |
+ return static_cast<LocalFileSystem*>(Supplement<Page>::from(toDocument(context).page(), supplementName())); |
} |
- ASSERT(context->isWorkerGlobalScope()); |
- return static_cast<LocalFileSystem*>(Supplement<WorkerClients>::from(toWorkerGlobalScope(context)->clients(), supplementName())); |
+ ASSERT(context.isWorkerGlobalScope()); |
+ return static_cast<LocalFileSystem*>(Supplement<WorkerClients>::from(toWorkerGlobalScope(context).clients(), supplementName())); |
} |
-void provideLocalFileSystemTo(Page* page, PassOwnPtr<FileSystemClient> client) |
+void provideLocalFileSystemTo(Page& page, PassOwnPtr<FileSystemClient> client) |
{ |
- page->provideSupplement(LocalFileSystem::supplementName(), LocalFileSystem::create(client)); |
- page->inspectorController().registerModuleAgent(InspectorFileSystemAgent::create(page)); |
+ page.provideSupplement(LocalFileSystem::supplementName(), LocalFileSystem::create(client)); |
+ page.inspectorController().registerModuleAgent(InspectorFileSystemAgent::create(&page)); |
} |
void provideLocalFileSystemToWorker(WorkerClients* clients, PassOwnPtr<FileSystemClient> client) |