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

Unified Diff: components/drive/chromeos/resource_metadata.cc

Issue 2799603002: Process TeamDrive change in change list. (Closed)
Patch Set: Handle changes to Team Drive by the same path as files, including deletion. Created 3 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: components/drive/chromeos/resource_metadata.cc
diff --git a/components/drive/chromeos/resource_metadata.cc b/components/drive/chromeos/resource_metadata.cc
index d482dc252e86f04293ab1b2c5011a29dbd91d3f1..ed72583b38116072c0754b2bd97f42034f6f5a9f 100644
--- a/components/drive/chromeos/resource_metadata.cc
+++ b/components/drive/chromeos/resource_metadata.cc
@@ -213,6 +213,8 @@ FileError ResourceMetadata::SetUpDefaultEntries() {
ResourceEntry team_drives_dir;
team_drives_dir.mutable_file_info()->set_is_directory(true);
team_drives_dir.set_local_id(util::kDriveTeamDrivesDirLocalId);
+ team_drives_dir.set_resource_id(
+ util::kDriveTeamDrivesDirVirtualResourceId);
team_drives_dir.set_parent_local_id(util::kDriveGrandRootLocalId);
team_drives_dir.set_title(util::kDriveTeamDrivesDirName);
error = PutEntryUnderDirectory(team_drives_dir);

Powered by Google App Engine
This is Rietveld 408576698