Index: webkit/tools/test_shell/simple_file_writer.cc |
diff --git a/webkit/tools/test_shell/simple_file_writer.cc b/webkit/tools/test_shell/simple_file_writer.cc |
index 46889248cfe101a8a22fcffc9d5e6ec4029f5aaa..e30e1204c42442ab92a16164d27ce22b9bac87f3 100644 |
--- a/webkit/tools/test_shell/simple_file_writer.cc |
+++ b/webkit/tools/test_shell/simple_file_writer.cc |
@@ -182,6 +182,7 @@ SimpleFileWriter::SimpleFileWriter( |
WebFileWriterClient* client, |
FileSystemContext* file_system_context) |
: WebFileWriterBase(path, client), |
+ file_system_context_(file_system_context), |
io_thread_proxy_(new IOThreadProxy(AsWeakPtr(), file_system_context)) { |
} |
@@ -189,13 +190,13 @@ SimpleFileWriter::~SimpleFileWriter() { |
} |
void SimpleFileWriter::DoTruncate(const GURL& path, int64 offset) { |
- FileSystemURL url(path); |
+ FileSystemURL url = file_system_context_->CrackURL(path); |
io_thread_proxy_->Truncate(url, offset); |
} |
void SimpleFileWriter::DoWrite( |
const GURL& path, const GURL& blob_url, int64 offset) { |
- FileSystemURL url(path); |
+ FileSystemURL url = file_system_context_->CrackURL(path); |
io_thread_proxy_->Write(url, blob_url, offset); |
} |