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

Unified Diff: webkit/fileapi/file_system_util.cc

Issue 6810037: File API changes needed for safely passing user selected file entities from the file browser comp... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
Index: webkit/fileapi/file_system_util.cc
===================================================================
--- webkit/fileapi/file_system_util.cc (revision 81576)
+++ webkit/fileapi/file_system_util.cc (working copy)
@@ -17,7 +17,7 @@
static const char kPersistentDir[] = "/persistent/";
static const char kTemporaryDir[] = "/temporary/";
-static const char kLocalDir[] = "/local/";
+static const char kExternalDir[] = "/external/";
bool CrackFileSystemURL(const GURL& url, GURL* origin_url, FileSystemType* type,
FilePath* file_path) {
@@ -77,9 +77,9 @@
} else if (path.compare(0, strlen(kTemporaryDir), kTemporaryDir) == 0) {
file_system_type = kFileSystemTypeTemporary;
path = path.substr(strlen(kTemporaryDir));
- } else if (path.compare(0, strlen(kLocalDir), kLocalDir) == 0) {
- file_system_type = kFileSystemTypeLocal;
- path = path.substr(strlen(kLocalDir));
+ } else if (path.compare(0, strlen(kExternalDir), kExternalDir) == 0) {
+ file_system_type = kFileSystemTypeExternal;
+ path = path.substr(strlen(kExternalDir));
} else {
return false;
}
@@ -114,8 +114,8 @@
case kFileSystemTypePersistent:
path += (kPersistentDir + 1); // We don't want the leading slash.
break;
- case kFileSystemTypeLocal:
- path += (kLocalDir + 1); // We don't want the leading slash.
+ case kFileSystemTypeExternal:
+ path += (kExternalDir + 1); // We don't want the leading slash.
break;
default:
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698