DescriptionAdded 'starred' to EntryProperty in FileManagerPrivateAPI.
We need to get 'starred' attribute of Drive file/directory in order to show 'starred' icon in Files app.
BUG=646839
TEST=unit_tests --gtest_filter=ResourceEntryConversionTest*
There has been no 'starred' property in Drive API on chromeOS until before.
It's necessary to update all resources from server just once,
so that we can avoid holding an old DB which has no 'starred' property.
We realized it by using 'starred_property_initialized' flag.
The below test ensures that the flag correctly changes.
TEST=unit_tests --gtest_filter=ResourceMetadataStorageTest.ChangeStarredPropertyInitialized
It is manually tested that the change list is reloaded for an old DB,
and an updated DB gets right 'starred' values.
Committed: https://crrev.com/68666d15026e666c18587cf73b560cf1076b818a
Cr-Commit-Position: refs/heads/master@{#421802}
Patch Set 1 : Added 'starred' to EntryProperty in FileManagerPrivateAPI. #
Total comments: 2
Patch Set 2 : Gave a fresh tag number for starred in Protocol Buffer. #Patch Set 3 : Load data from server to get 'starred' property. #Patch Set 4 : Load data from server to get 'starred' property. #Patch Set 5 : Load data from server to get 'starred' property. #
Total comments: 1
Patch Set 6 : Correct Indent. #Patch Set 7 : Change tag name 'has_starred' into 'starred_property_initialized.' #
Total comments: 10
Patch Set 8 : Added error check. #
Total comments: 4
Patch Set 9 : Added and modified comments. #
Messages
Total messages: 27 (12 generated)
|