Index: chrome/browser/chromeos/drive/file_system_util.cc |
diff --git a/chrome/browser/chromeos/drive/file_system_util.cc b/chrome/browser/chromeos/drive/file_system_util.cc |
index 283772e6a4ec46bad193b4c92b25aae438be50ce..4d2b7830068254fea4ed3babc6dc0b47056ca24f 100644 |
--- a/chrome/browser/chromeos/drive/file_system_util.cc |
+++ b/chrome/browser/chromeos/drive/file_system_util.cc |
@@ -127,6 +127,13 @@ const base::FilePath& GetDriveMyDriveRootPath() { |
return drive_root_path; |
} |
+base::FilePath GetDriveMountPointPathUsingUserHash( |
+ const std::string user_id_hash) { |
+ return base::FilePath(kSpecialMountPointRoot).AppendASCII( |
+ net::EscapePath(kDriveMountPointNameBase + |
+ (user_id_hash.empty() ? "" : "-" + user_id_hash))); |
+} |
+ |
base::FilePath GetDriveMountPointPath(Profile* profile) { |
std::string id = chromeos::ProfileHelper::GetUserIdHashFromProfile(profile); |
if (id.empty()) { |
@@ -141,8 +148,7 @@ base::FilePath GetDriveMountPointPath(Profile* profile) { |
if (user) |
id = user->username_hash(); |
} |
- return base::FilePath(kSpecialMountPointRoot).AppendASCII( |
- net::EscapePath(kDriveMountPointNameBase + (id.empty() ? "" : "-" + id))); |
+ return GetDriveMountPointPathUsingUserHash(id); |
} |
FileSystemInterface* GetFileSystemByProfile(Profile* profile) { |