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

Unified Diff: webkit/tools/test_shell/simple_file_writer.cc

Issue 11787028: New FileSystemURL cracking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test on Win Created 7 years, 11 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 | « webkit/tools/test_shell/simple_file_writer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « webkit/tools/test_shell/simple_file_writer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698