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

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: 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/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..480ed60b858e791708204ed32bb8c1bb26e181fc 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) {
kinuko 2013/01/21 06:57:33 nit: indent
tbarzic 2013/01/22 21:30:56 Done.
+ 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 =

Powered by Google App Engine
This is Rietveld 408576698