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

Unified Diff: chrome/browser/extensions/api/downloads/downloads_api_unittest.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
Index: chrome/browser/extensions/api/downloads/downloads_api_unittest.cc
diff --git a/chrome/browser/extensions/api/downloads/downloads_api_unittest.cc b/chrome/browser/extensions/api/downloads/downloads_api_unittest.cc
index 2c818f24cf02a079107ccd4501938da2d8841ba6..eb46e02f579639da647ce868f28020e3ec0d929f 100644
--- a/chrome/browser/extensions/api/downloads/downloads_api_unittest.cc
+++ b/chrome/browser/extensions/api/downloads/downloads_api_unittest.cc
@@ -726,13 +726,12 @@ class HTML5FileWriter {
}
fileapi::FileSystemOperation* operation() {
- return fs_->CreateFileSystemOperation(
- fileapi::FileSystemURL(GURL(root_)), NULL);
+ return fs_->CreateFileSystemOperation(fs_->CrackURL(GURL(root_)), NULL);
}
void CreateFile() {
CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- operation()->CreateFile(fileapi::FileSystemURL(GURL(root_ + filename_)),
+ operation()->CreateFile(fs_->CrackURL(GURL(root_ + filename_)),
kExclusive, base::Bind(
&HTML5FileWriter::CreateFileCallback, base::Unretained(this)));
}
@@ -746,7 +745,7 @@ class HTML5FileWriter {
blob_url(), blob_data_);
operation()->Write(
url_request_context_.get(),
- fileapi::FileSystemURL(GURL(root_ + filename_)),
+ fs_->CrackURL(GURL(root_ + filename_)),
blob_url(),
0, // offset
base::Bind(&HTML5FileWriter::WriteCallback, base::Unretained(this)));

Powered by Google App Engine
This is Rietveld 408576698