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

Unified Diff: components/drive/resource_entry_conversion.h

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/resource_entry_conversion.h
diff --git a/components/drive/resource_entry_conversion.h b/components/drive/resource_entry_conversion.h
index 2de228e7e08855f2bed4f9634dd83598518af29c..6c9cb3497c760ff372dd742c8fa35955025f9296 100644
--- a/components/drive/resource_entry_conversion.h
+++ b/components/drive/resource_entry_conversion.h
@@ -37,6 +37,15 @@ bool ConvertChangeResourceToResourceEntry(
ResourceEntry* out_entry,
std::string* out_parent_resource_id);
+// Converts a google_apis::ChangeResource with type=TEAM_DRIVE into a
+// drive::ResourceEntry.
+// If the conversion succeeded, return true and sets the result to
+// |out_entry|.
+bool ConvertTeamDriveChangeResourceToResourceEntry(
+ const google_apis::ChangeResource& input,
+ ResourceEntry* out_entry,
+ std::string* out_parent_resource_id);
+
// Converts a google_apis::FileResource into a drive::ResourceEntry.
// Also see the comment for ConvertChangeResourceToResourceEntry above.
bool ConvertFileResourceToResourceEntry(

Powered by Google App Engine
This is Rietveld 408576698