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

Unified Diff: chrome/browser/chromeos/drive/drive_task_executor.cc

Issue 13767002: Use ExtractDrivePath(path()) instead of virtual_path() for getting Drive path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use GetDriveMountPointPath() Created 7 years, 8 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 | « chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/drive_task_executor.cc
diff --git a/chrome/browser/chromeos/drive/drive_task_executor.cc b/chrome/browser/chromeos/drive/drive_task_executor.cc
index d0871d8460b157dbef9968a4cfd6d065edb470e0..17014b369a9b2e96538e569cbce48287b1793983 100644
--- a/chrome/browser/chromeos/drive/drive_task_executor.cc
+++ b/chrome/browser/chromeos/drive/drive_task_executor.cc
@@ -49,9 +49,10 @@ bool DriveTaskExecutor::ExecuteAndNotify(
std::vector<base::FilePath> raw_paths;
for (std::vector<FileSystemURL>::const_iterator url = file_urls.begin();
url != file_urls.end(); ++url) {
- if (!url->is_valid() || url->type() != fileapi::kFileSystemTypeDrive)
+ base::FilePath path = util::ExtractDrivePathFromFileSystemUrl(*url);
+ if (path.empty())
return false;
- raw_paths.push_back(url->virtual_path());
+ raw_paths.push_back(path);
}
DriveSystemService* system_service =
« no previous file with comments | « chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698