DescriptionSyncFS: Convert WAPI ResourceID to DriveAPI FileID
To migrate SyncFS from WAPI to DriveAPI, this change adds utility functions to
convert from/to WAPI ResourceID to/from DriveAPI FileID as below, and replaces
WAPI ResourceIDs stored in DriveMetadataDB with DriveAPI FileIDs using
DB migration mechanism (DB schema version: 1 -> 2).
(WAPI) "file:xxxx" <=> "xxxx" (DriveAPI)
(WAPI) "folder:yyyy" <=> "yyyy" (DriveAPI)
When using WAPI (i.e. IsDriveAPIEnabled() returns false), DriveMetadataDB
passes ResourceIDs re-converted from FileIDs to DriveMetadataStore so that the
SyncFS can use migrated DB contents on WAPI.
BUG=234557
TEST=unit_tests --gtest_filter=\*DriveMetadataDBMigrationUtilTest\*
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202858
Patch Set 1 : #
Total comments: 11
Patch Set 2 : migrate more fields and address comments #
Total comments: 1
Patch Set 3 : fix more #
Total comments: 14
Patch Set 4 : review fix #
Total comments: 8
Patch Set 5 : rebase #Patch Set 6 : review fix #Patch Set 7 : fix #
Total comments: 4
Messages
Total messages: 23 (0 generated)
|