| 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 cdc6d392baa6e17910e8c7ceeef0d9ed4fa1685c..11e5e347c22367d668177fc3c2cc36428e324919 100644
|
| --- a/chrome/browser/chromeos/drive/file_system_util.cc
|
| +++ b/chrome/browser/chromeos/drive/file_system_util.cc
|
| @@ -127,6 +127,12 @@ const base::FilePath& GetDriveMyDriveRootPath() {
|
| return drive_root_path;
|
| }
|
|
|
| +base::FilePath GetDriveMountPointPathUsingUserHash(std::string username_hash) {
|
| + return base::FilePath(kSpecialMountPointRoot).AppendASCII(
|
| + net::EscapePath(kDriveMountPointNameBase +
|
| + (username_hash.empty() ? "" : "-" + username_hash)));
|
| +}
|
| +
|
| base::FilePath GetDriveMountPointPath(Profile* profile) {
|
| std::string id = chromeos::ProfileHelper::GetUserIdHashFromProfile(profile);
|
| if (id.empty()) {
|
| @@ -141,8 +147,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) {
|
|
|