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

Issue 2839863002: Add Team Drive subtree to the directory list view. (Closed)

Created:
3 years, 8 months ago by yamaguchi
Modified:
3 years, 7 months ago
Reviewers:
fukino
CC:
chromium-reviews, extensions-reviews_chromium.org, vitalyp+closure_chromium.org, yamaguchi+watch_chromium.org, oka+watch_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, jlklein+watch-closure_chromium.org, oshima+watch_chromium.org, fukino+watch_chromium.org, chromium-apps-reviews_chromium.org, davemoore+watch_chromium.org, dbeam+watch-closure_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Team Drive subtree to the directory list view. Team Drive files are loaded to /team_drives directory. This change will show it in the UI. Google Drive(volume) - My Drive - "Team Drives" - "ABC team drive" Before the change, only the root entries and fake entries were shown with special icon (as opposed to the folder icon) and label (from localized string resource, as opposed to filename of each entry). Now we are showing "Team Drives" and "ABC team drive" with the special icon just like such root/fake entries. However, the label of "ABC team drive" should be the name of the entry (which comes from the name of a Team Drive). hasIndividualName property is introduced for this reason. TEST=tested manually with --team-drive TEST=browser_tests --gtest_filter=FileManagerJsTest.*:GalleryBrowserTest* BUG=684275 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2839863002 Cr-Commit-Position: refs/heads/master@{#468579} Committed: https://chromium.googlesource.com/chromium/src/+/317eb67a43957db557f51f360dfeb3a40ffdd690

Patch Set 1 #

Patch Set 2 : Fix unit tests #

Total comments: 15

Patch Set 3 : Reflect review comments. Add mock for chrome.commandLinePrivate to avoid test runtime errors. #

Total comments: 1

Patch Set 4 : Add unit test to verify Team Drives node generated. #

Total comments: 2

Patch Set 5 : Mock commandline flags for browser_tests. #

Patch Set 6 : Fix FileManagerJsTest.{NavigationListModelTest,ProvidersModel}. #

Total comments: 7

Patch Set 7 : Enable auto-completion of search query in Team Drives. #

Patch Set 8 : Use RootType to identify Team Drive root directories and the grand root. #

Patch Set 9 : fix tests. #

Patch Set 10 : Simplfy logic to synthesize team_drives volume mock. #

Total comments: 10

Patch Set 11 : Simplify promise statements. #

Patch Set 12 : Apply auto formatter. #

Total comments: 8

Patch Set 13 : Remove some unncecesary code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+358 lines, -33 lines) Patch
M chrome/app/chromeos_strings.grdp View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/private_api_strings.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/file_manager/externs/entry_location.js View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M ui/file_manager/externs/volume_info.js View 1 chunk +7 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/background/js/compiled_resources2.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/file_manager/background/js/device_handler_unittest.js View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/file_manager/background/js/duplicate_finder_unittest.js View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/file_manager/background/js/entry_location_impl.js View 1 2 3 4 5 6 7 1 chunk +8 lines, -3 lines 0 comments Download
M ui/file_manager/file_manager/background/js/media_import_handler_unittest.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/file_manager/file_manager/background/js/mock_volume_manager.js View 1 2 3 4 5 6 7 8 9 2 chunks +34 lines, -10 lines 0 comments Download
M ui/file_manager/file_manager/background/js/volume_info_impl.js View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +34 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/background/js/volume_manager_impl.js View 1 2 3 4 5 6 7 2 chunks +22 lines, -4 lines 0 comments Download
M ui/file_manager/file_manager/background/js/volume_manager_unittest.js View 1 2 3 4 5 6 7 8 3 chunks +26 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/common/js/importer_common_unittest.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/file_manager/file_manager/common/js/unittest_util.js View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/common/js/util.js View 1 2 3 4 5 6 7 4 chunks +29 lines, -2 lines 0 comments Download
M ui/file_manager/file_manager/common/js/volume_manager_common.js View 1 2 3 4 5 6 7 3 chunks +11 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/css/file_types.css View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download
A ui/file_manager/file_manager/foreground/images/volumes/2x/team_drive.png View Binary file 0 comments Download
A ui/file_manager/file_manager/foreground/images/volumes/2x/team_drive_active.png View Binary file 0 comments Download
A ui/file_manager/file_manager/foreground/images/volumes/team_drive.png View Binary file 0 comments Download
A ui/file_manager/file_manager/foreground/images/volumes/team_drive_active.png View Binary file 0 comments Download
M ui/file_manager/file_manager/foreground/js/actions_model_unittest.js View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/import_controller_unittest.js View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/navigation_list_model_unittest.html View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/navigation_list_model_unittest.js View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/providers_model_unittest.js View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/ui/directory_tree.js View 1 2 3 4 5 6 7 8 9 10 2 chunks +16 lines, -8 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/ui/directory_tree_unittest.js View 1 2 3 4 4 chunks +77 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/ui/location_line.js View 1 2 3 4 5 6 7 3 chunks +28 lines, -3 lines 0 comments Download
M ui/file_manager/gallery/manifest.json View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 64 (46 generated)
yamaguchi
ptal
3 years, 8 months ago (2017-04-25 09:44:37 UTC) #12
fukino
Could you elaborate non-trivial patches like this? https://codereview.chromium.org/2839863002/diff/20001/ui/file_manager/file_manager/background/js/entry_location_impl.js File ui/file_manager/file_manager/background/js/entry_location_impl.js (right): https://codereview.chromium.org/2839863002/diff/20001/ui/file_manager/file_manager/background/js/entry_location_impl.js#newcode53 ui/file_manager/file_manager/background/js/entry_location_impl.js:53: this.hasFixedLabel = ...
3 years, 8 months ago (2017-04-25 15:06:37 UTC) #13
fukino
> Could you elaborate non-trivial patches like this? In the bug description :)
3 years, 8 months ago (2017-04-25 15:07:11 UTC) #14
fukino
On 2017/04/25 15:07:11, fukino wrote: > > Could you elaborate non-trivial patches like this? > ...
3 years, 8 months ago (2017-04-25 15:07:51 UTC) #15
yamaguchi
https://codereview.chromium.org/2839863002/diff/20001/ui/file_manager/file_manager/background/js/entry_location_impl.js File ui/file_manager/file_manager/background/js/entry_location_impl.js (right): https://codereview.chromium.org/2839863002/diff/20001/ui/file_manager/file_manager/background/js/entry_location_impl.js#newcode53 ui/file_manager/file_manager/background/js/entry_location_impl.js:53: this.hasFixedLabel = [ On 2017/04/25 15:06:37, fukino wrote: > ...
3 years, 8 months ago (2017-04-26 08:12:57 UTC) #19
yamaguchi
NMW https://codereview.chromium.org/2839863002/diff/60001/ui/file_manager/file_manager/background/js/volume_info_impl.js File ui/file_manager/file_manager/background/js/volume_info_impl.js (right): https://codereview.chromium.org/2839863002/diff/60001/ui/file_manager/file_manager/background/js/volume_info_impl.js#newcode61 ui/file_manager/file_manager/background/js/volume_info_impl.js:61: chrome.commandLinePrivate.hasSwitch('team-drives', function(enabled) { This line causes crash of ...
3 years, 8 months ago (2017-04-27 02:32:21 UTC) #26
yamaguchi
ptal https://codereview.chromium.org/2839863002/diff/60001/ui/file_manager/file_manager/background/js/volume_info_impl.js File ui/file_manager/file_manager/background/js/volume_info_impl.js (right): https://codereview.chromium.org/2839863002/diff/60001/ui/file_manager/file_manager/background/js/volume_info_impl.js#newcode61 ui/file_manager/file_manager/background/js/volume_info_impl.js:61: chrome.commandLinePrivate.hasSwitch('team-drives', function(enabled) { On 2017/04/27 02:32:21, yamaguchi wrote: ...
3 years, 7 months ago (2017-04-27 08:36:06 UTC) #35
fukino
Sorry! I'll look into more tomorrow. I'm trying to understand the clear meaning of each ...
3 years, 7 months ago (2017-04-27 10:44:58 UTC) #37
yamaguchi
Instead of introducing the |EntryType|, we could add 1 more different RootTypes enum value. RootType ...
3 years, 7 months ago (2017-04-28 11:12:16 UTC) #38
yamaguchi
On 2017/04/28 11:12:16, yamaguchi wrote: > Instead of introducing the |EntryType|, we could add 1 ...
3 years, 7 months ago (2017-04-28 12:44:16 UTC) #43
fukino
https://codereview.chromium.org/2839863002/diff/180001/ui/file_manager/file_manager/background/js/volume_info_impl.js File ui/file_manager/file_manager/background/js/volume_info_impl.js (right): https://codereview.chromium.org/2839863002/diff/180001/ui/file_manager/file_manager/background/js/volume_info_impl.js#newcode71 ui/file_manager/file_manager/background/js/volume_info_impl.js:71: /** @type {Promise.<!Array<!DirectoryEntry>>} */ nit: Promise<!Array... Could you remove ...
3 years, 7 months ago (2017-05-01 00:31:42 UTC) #46
yamaguchi
https://codereview.chromium.org/2839863002/diff/180001/ui/file_manager/file_manager/background/js/volume_info_impl.js File ui/file_manager/file_manager/background/js/volume_info_impl.js (right): https://codereview.chromium.org/2839863002/diff/180001/ui/file_manager/file_manager/background/js/volume_info_impl.js#newcode71 ui/file_manager/file_manager/background/js/volume_info_impl.js:71: /** @type {Promise.<!Array<!DirectoryEntry>>} */ On 2017/05/01 00:31:41, fukino wrote: ...
3 years, 7 months ago (2017-05-01 09:05:25 UTC) #51
fukino
https://codereview.chromium.org/2839863002/diff/220001/ui/file_manager/file_manager/background/js/volume_info_impl.js File ui/file_manager/file_manager/background/js/volume_info_impl.js (right): https://codereview.chromium.org/2839863002/diff/220001/ui/file_manager/file_manager/background/js/volume_info_impl.js#newcode235 ui/file_manager/file_manager/background/js/volume_info_impl.js:235: this.displayRootPromise_.then(function(displayRoot) { These lines can be removed. It's already ...
3 years, 7 months ago (2017-05-02 04:23:54 UTC) #52
yamaguchi
https://codereview.chromium.org/2839863002/diff/220001/ui/file_manager/file_manager/background/js/volume_info_impl.js File ui/file_manager/file_manager/background/js/volume_info_impl.js (right): https://codereview.chromium.org/2839863002/diff/220001/ui/file_manager/file_manager/background/js/volume_info_impl.js#newcode235 ui/file_manager/file_manager/background/js/volume_info_impl.js:235: this.displayRootPromise_.then(function(displayRoot) { On 2017/05/02 04:23:54, fukino wrote: > These ...
3 years, 7 months ago (2017-05-02 05:34:52 UTC) #55
fukino
LGTM. Thank you!
3 years, 7 months ago (2017-05-02 07:23:15 UTC) #58
yamaguchi
On 2017/05/02 07:23:15, fukino wrote: > LGTM. Thank you! Thanks so much!
3 years, 7 months ago (2017-05-02 07:23:56 UTC) #60
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/2839863002/240001
3 years, 7 months ago (2017-05-02 07:24:00 UTC) #61
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 07:29:39 UTC) #64
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/317eb67a43957db557f51f360dfe...

Powered by Google App Engine
This is Rietveld 408576698