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

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: Couple of nits I noticed 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 451bb6a58f8dd3636b642e461207934e28a08ed1..fd4310d0bc8f72025176c386bb2265b0eb60e00d 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