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

Issue 2346873004: Added 'starred' to EntryProperty in FileManagerPrivateAPI. (Closed)

Created:
4 years, 3 months ago by harukam
Modified:
4 years, 2 months ago
Reviewers:
mtomasz, hashimoto, fukino
CC:
chromium-reviews, extensions-reviews_chromium.org, yamaguchi+watch_chromium.org, oka+watch_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, fukino+watch_chromium.org, chromium-apps-reviews_chromium.org, davemoore+watch_chromium.org, fukino
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added '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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -3 lines) Patch
M chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/file_manager_private.idl View 2 chunks +4 lines, -0 lines 0 comments Download
M components/drive/drive.proto View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M components/drive/resource_entry_conversion.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/drive/resource_entry_conversion_unittest.cc View 5 chunks +16 lines, -0 lines 0 comments Download
M components/drive/resource_metadata_storage.cc View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -0 lines 0 comments Download
M components/drive/resource_metadata_storage_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +38 lines, -0 lines 0 comments Download
M components/drive/service/drive_api_service.cc View 1 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (12 generated)
harukam
fukino-san, PTAL.
4 years, 3 months ago (2016-09-16 11:40:49 UTC) #2
fukino
https://codereview.chromium.org/2346873004/diff/1/components/drive/drive.proto File components/drive/drive.proto (right): https://codereview.chromium.org/2346873004/diff/1/components/drive/drive.proto#newcode113 components/drive/drive.proto:113: optional bool starred = 12; I guess tag number ...
4 years, 2 months ago (2016-09-27 06:24:23 UTC) #3
harukam
fukino-san, I changed the 'starred' tag number to a fresh one. Please take another look. ...
4 years, 2 months ago (2016-09-27 08:12:08 UTC) #4
fukino
+hashimoto@ looking good so far, but EntryProperties.starred will always be false if metadata are cached ...
4 years, 2 months ago (2016-09-27 08:20:15 UTC) #5
hashimoto
On 2016/09/27 08:20:15, fukino wrote: > +hashimoto@ > > looking good so far, but EntryProperties.starred ...
4 years, 2 months ago (2016-09-27 08:35:04 UTC) #6
harukam
Hashimoto-san, thank you for advice about Drive metadata. Could you take a look at files ...
4 years, 2 months ago (2016-09-29 05:42:18 UTC) #9
hashimoto
Looking good. Thank you for doing this! Also, please make sure that the intended behavior ...
4 years, 2 months ago (2016-09-29 08:43:43 UTC) #10
harukam
Hashimoto-san, thanks for reviewing. Please take another look. https://codereview.chromium.org/2346873004/diff/120001/components/drive/resource_metadata_storage.cc File components/drive/resource_metadata_storage.cc (right): https://codereview.chromium.org/2346873004/diff/120001/components/drive/resource_metadata_storage.cc#newcode637 components/drive/resource_metadata_storage.cc:637: if ...
4 years, 2 months ago (2016-09-29 09:39:46 UTC) #11
hashimoto
lgtm with nits https://codereview.chromium.org/2346873004/diff/140001/components/drive/resource_metadata_storage.cc File components/drive/resource_metadata_storage.cc (right): https://codereview.chromium.org/2346873004/diff/140001/components/drive/resource_metadata_storage.cc#newcode640 components/drive/resource_metadata_storage.cc:640: header.set_largest_changestamp(0); Please add a comment to ...
4 years, 2 months ago (2016-09-29 09:46:06 UTC) #13
fukino
lgtm for private_api_drive.cc
4 years, 2 months ago (2016-09-29 10:55:17 UTC) #15
harukam
Thanks for reviewing, hashimoto-san, fukino-san. mtomasz@, please take a look at chrome/common/extensions/api/file_manager_private.idl https://codereview.chromium.org/2346873004/diff/140001/components/drive/resource_metadata_storage.cc File components/drive/resource_metadata_storage.cc ...
4 years, 2 months ago (2016-09-29 11:08:22 UTC) #17
mtomasz
lgtm!
4 years, 2 months ago (2016-09-29 11:24:22 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2346873004/160001
4 years, 2 months ago (2016-09-29 11:27:35 UTC) #23
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 2 months ago (2016-09-29 12:00:27 UTC) #25
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 12:02:19 UTC) #27
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/68666d15026e666c18587cf73b560cf1076b818a
Cr-Commit-Position: refs/heads/master@{#421802}

Powered by Google App Engine
This is Rietveld 408576698