| Index: chrome/browser/chromeos/drive/drive_file_system_util.cc
|
| diff --git a/chrome/browser/chromeos/drive/drive_file_system_util.cc b/chrome/browser/chromeos/drive/drive_file_system_util.cc
|
| index c5ed5c7ba7a15331bb9dcaaa7069112ed16f5f1b..c56b321d0bc9dd80acfd21c7e469f6b8ea7345ea 100644
|
| --- a/chrome/browser/chromeos/drive/drive_file_system_util.cc
|
| +++ b/chrome/browser/chromeos/drive/drive_file_system_util.cc
|
| @@ -93,6 +93,24 @@ bool IsSpecialResourceId(const std::string& resource_id) {
|
| resource_id == kDriveOtherDirSpecialResourceId;
|
| }
|
|
|
| +DriveEntryProto CreateMyDriveRootEntry(const std::string& root_resource_id) {
|
| + DriveEntryProto mydrive_root;
|
| + mydrive_root.mutable_file_info()->set_is_directory(true);
|
| + mydrive_root.set_resource_id(root_resource_id);
|
| + mydrive_root.set_parent_resource_id(util::kDriveGrandRootSpecialResourceId);
|
| + mydrive_root.set_title(util::kDriveMyDriveRootDirName);
|
| + return mydrive_root;
|
| +}
|
| +
|
| +DriveEntryProto CreateOtherDirEntry() {
|
| + DriveEntryProto other_dir;
|
| + other_dir.mutable_file_info()->set_is_directory(true);
|
| + other_dir.set_resource_id(util::kDriveOtherDirSpecialResourceId);
|
| + other_dir.set_parent_resource_id(util::kDriveGrandRootSpecialResourceId);
|
| + other_dir.set_title(util::kDriveOtherDirName);
|
| + return other_dir;
|
| +}
|
| +
|
| const std::string& GetDriveMountPointPathAsString() {
|
| CR_DEFINE_STATIC_LOCAL(std::string, drive_mount_path_string,
|
| (kDriveMountPointPath));
|
|
|