| 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..f8ca3b36647fcb8402807d3b87cc1449547f1675 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 GetDriveMountPointPathForUserIdHash(
|
| + 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 GetDriveMountPointPathForUserIdHash(id);
|
| }
|
|
|
| FileSystemInterface* GetFileSystemByProfile(Profile* profile) {
|
|
|