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

Unified Diff: chrome/browser/chromeos/drive/drive_file_system_util.h

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
Index: chrome/browser/chromeos/drive/drive_file_system_util.h
diff --git a/chrome/browser/chromeos/drive/drive_file_system_util.h b/chrome/browser/chromeos/drive/drive_file_system_util.h
index ddb1b603abc2415e5c83d3c88e701c22c3689d6d..e95711ed544aebb052822acc053baf39339ddfe8 100644
--- a/chrome/browser/chromeos/drive/drive_file_system_util.h
+++ b/chrome/browser/chromeos/drive/drive_file_system_util.h
@@ -19,6 +19,10 @@ namespace base {
class FilePath;
}
+namespace fileapi {
+class FileSystemURL;
+}
+
namespace drive {
class PlatformFileInfoProto;
@@ -112,9 +116,14 @@ base::FilePath ConvertToMyDriveNamespace(const base::FilePath& path);
// Extracts the Drive path from the given path located under the Drive mount
// point. Returns an empty path if |path| is not under the Drive mount point.
-// Examples: ExtractGDatPath("/special/drive/foo.txt") => "drive/foo.txt"
+// Examples: ExtractDrivePath("/special/drive/foo.txt") => "drive/foo.txt"
base::FilePath ExtractDrivePath(const base::FilePath& path);
+// Extracts the Drive path (e.g., "drive/foo.txt") from the filesystem URL.
+// Returns an empty path if |url| does not point under Drive mount point.
+base::FilePath ExtractDrivePathFromFileSystemUrl(
+ const fileapi::FileSystemURL& url);
+
// Escapes a file name in Drive cache.
// Replaces percent ('%'), period ('.') and slash ('/') with %XX (hex)
std::string EscapeCacheFileName(const std::string& filename);
« no previous file with comments | « chrome/browser/chromeos/drive/drive_file_system_proxy.cc ('k') | chrome/browser/chromeos/drive/drive_file_system_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698