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

Unified Diff: chrome/browser/chromeos/drive/drive_task_executor.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/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 dd2bcd5229ee598271d104af17bc62a9ba290de5..8ce2e94a05dfc33c6a49f481ec5378490ff6b4a0 100644
--- a/chrome/browser/chromeos/drive/drive_task_executor.cc
+++ b/chrome/browser/chromeos/drive/drive_task_executor.cc
@@ -26,9 +26,10 @@
#include "webkit/fileapi/file_system_url.h"
#include "webkit/fileapi/file_system_util.h"
-namespace drive {
-
using file_handler_util::FileTaskExecutor;
+using fileapi::FileSystemURL;
+
+namespace drive {
DriveTaskExecutor::DriveTaskExecutor(Profile* profile,
const std::string& app_id,
@@ -43,15 +44,14 @@ DriveTaskExecutor::~DriveTaskExecutor() {
}
bool DriveTaskExecutor::ExecuteAndNotify(
- const std::vector<GURL>& file_urls,
+ const std::vector<FileSystemURL>& file_urls,
const file_handler_util::FileTaskFinishedCallback& done) {
std::vector<FilePath> raw_paths;
- for (std::vector<GURL>::const_iterator iter = file_urls.begin();
- iter != file_urls.end(); ++iter) {
- fileapi::FileSystemURL url(*iter);
- if (!url.is_valid() || url.type() != fileapi::kFileSystemTypeDrive)
+ for (std::vector<FileSystemURL>::const_iterator url = file_urls.begin();
+ url != file_urls.end(); ++url) {
+ if (!url->is_valid() || url->type() != fileapi::kFileSystemTypeDrive)
return false;
- raw_paths.push_back(url.virtual_path());
+ raw_paths.push_back(url->virtual_path());
}
DriveSystemService* system_service =
« no previous file with comments | « chrome/browser/chromeos/drive/drive_task_executor.h ('k') | chrome/browser/chromeos/extensions/file_browser_private_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698