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

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

Issue 10823273: Integrate external mount points to IsolatedContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove too strict DCHECK Created 8 years, 4 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/gdata/drive_task_executor.cc
diff --git a/chrome/browser/chromeos/gdata/drive_task_executor.cc b/chrome/browser/chromeos/gdata/drive_task_executor.cc
index 401e86e5b269697756cadb7b451b674e9bd31bd4..96842b695cc97b3cd5d92e6839feeae5347f52f8 100644
--- a/chrome/browser/chromeos/gdata/drive_task_executor.cc
+++ b/chrome/browser/chromeos/gdata/drive_task_executor.cc
@@ -21,6 +21,7 @@
#include "chrome/browser/ui/browser_window.h"
#include "content/public/browser/browser_thread.h"
#include "webkit/fileapi/file_system_types.h"
+#include "webkit/fileapi/file_system_url.h"
#include "webkit/fileapi/file_system_util.h"
namespace gdata {
@@ -52,13 +53,10 @@ bool DriveTaskExecutor::ExecuteAndNotify(
std::vector<FilePath> raw_paths;
for (std::vector<GURL>::const_iterator iter = file_urls.begin();
iter != file_urls.end(); ++iter) {
- FilePath raw_path;
- fileapi::FileSystemType type = fileapi::kFileSystemTypeUnknown;
- if (!fileapi::CrackFileSystemURL(*iter, NULL, &type, &raw_path) ||
- type != fileapi::kFileSystemTypeExternal) {
+ fileapi::FileSystemURL url(*iter);
+ if (!url.is_valid() || url.type() != fileapi::kFileSystemTypeDrive)
return false;
- }
- raw_paths.push_back(raw_path);
+ raw_paths.push_back(url.virtual_path());
}
gdata::GDataSystemService* system_service =
« no previous file with comments | « chrome/browser/chromeos/extensions/file_handler_util.cc ('k') | chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698