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

Issue 2292873003: Divide volume_manager.js into files for each classes and extract interfaces from them. (Closed)

Created:
4 years, 3 months ago by fukino
Modified:
4 years, 3 months ago
Reviewers:
oka
CC:
chromium-reviews, posciak+watch_chromium.org, tfarina, rginda+watch_chromium.org, mtomasz+watch_chromium.org, jlklein+watch-closure_chromium.org, vitalyp+closure_chromium.org, dbeam+watch-closure_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Divide volume_manager.js into files for each classes and extract interfaces from them. This CL divides classes in volume_manager.js into separate files. In addition, it extracts interfaces from each classes so that foreground scripts can refer to the interface definitions without depending on their implementation classes. BUG=636289 TEST=run browser_tests Committed: https://crrev.com/a5abef97afdb57b24e5bce63fb10054ca0266b91 Cr-Commit-Position: refs/heads/master@{#416205}

Patch Set 1 #

Total comments: 19

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1633 lines, -1338 lines) Patch
M ui/file_manager/audio_player/js/compiled_resources.gyp View 4 chunks +13 lines, -2 lines 0 comments Download
A ui/file_manager/externs/background_window_common.js View 1 1 chunk +18 lines, -0 lines 0 comments Download
A ui/file_manager/externs/entry_location.js View 1 1 chunk +48 lines, -0 lines 0 comments Download
A ui/file_manager/externs/volume_info_list.js View 1 chunk +76 lines, -0 lines 0 comments Download
A ui/file_manager/externs/volume_manager.js View 1 chunk +109 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/background/js/background.js View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/file_manager/file_manager/background/js/background_base.js View 1 chunk +1 line, -1 line 0 comments Download
M ui/file_manager/file_manager/background/js/background_common_scripts.js View 1 chunk +6 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/background/js/compiled_resources.gyp View 3 chunks +9 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/background/js/device_handler.js View 1 chunk +1 line, -1 line 0 comments Download
M ui/file_manager/file_manager/background/js/device_handler_unittest.html View 1 chunk +7 lines, -2 lines 0 comments Download
M ui/file_manager/file_manager/background/js/duplicate_finder.js View 1 chunk +1 line, -1 line 0 comments Download
M ui/file_manager/file_manager/background/js/duplicate_finder_unittest.html View 1 chunk +6 lines, -1 line 0 comments Download
A ui/file_manager/file_manager/background/js/entry_location_impl.js View 1 chunk +44 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/background/js/file_operation_manager.js View 1 chunk +1 line, -1 line 0 comments Download
M ui/file_manager/file_manager/background/js/file_operation_manager_unittest.js View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/file_manager/file_manager/background/js/launcher_search.js View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/file_manager/file_manager/background/js/media_import_handler_unittest.html View 2 chunks +6 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/background/js/mock_volume_manager.js View 6 chunks +10 lines, -10 lines 0 comments Download
M ui/file_manager/file_manager/background/js/test_util_base.js View 1 chunk +1 line, -1 line 0 comments Download
A ui/file_manager/file_manager/background/js/volume_info_impl.js View 1 chunk +224 lines, -0 lines 0 comments Download
A ui/file_manager/file_manager/background/js/volume_info_list_impl.js View 1 1 chunk +167 lines, -0 lines 0 comments Download
D ui/file_manager/file_manager/background/js/volume_manager.js View 1 chunk +0 lines, -1198 lines 0 comments Download
A ui/file_manager/file_manager/background/js/volume_manager_factory.js View 1 1 chunk +64 lines, -0 lines 0 comments Download
A ui/file_manager/file_manager/background/js/volume_manager_impl.js View 1 chunk +420 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/background/js/volume_manager_unittest.html View 1 chunk +6 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/background/js/volume_manager_unittest.js View 4 chunks +102 lines, -89 lines 0 comments Download
A ui/file_manager/file_manager/background/js/volume_manager_util.js View 1 1 chunk +212 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/common/js/importer_common_unittest.html View 1 chunk +6 lines, -3 lines 0 comments Download
M ui/file_manager/file_manager/common/js/volume_manager_common.js View 1 chunk +1 line, -1 line 0 comments Download
M ui/file_manager/file_manager/foreground/js/actions_model_unittest.html View 1 chunk +6 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/foreground/js/compiled_resources.gyp View 3 chunks +4 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/foreground/js/import_controller_unittest.html View 1 chunk +6 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/foreground/js/navigation_list_model_unittest.html View 1 chunk +6 lines, -2 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/providers_model_unittest.html View 1 chunk +6 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/foreground/js/ui/directory_tree_unittest.html View 1 chunk +6 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/foreground/js/volume_manager_wrapper.js View 3 chunks +8 lines, -6 lines 0 comments Download
M ui/file_manager/gallery/js/compiled_resources.gyp View 5 chunks +13 lines, -2 lines 0 comments Download
M ui/file_manager/video_player/js/compiled_resources.gyp View 4 chunks +13 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (14 generated)
fukino
PTAL. Thanks!
4 years, 3 months ago (2016-08-30 13:52:02 UTC) #4
oka
Why don't you update the targets corresponding to the split files in compiled_resources2.gyp ? https://codereview.chromium.org/2292873003/diff/1/ui/file_manager/externs/background_window_common.js ...
4 years, 3 months ago (2016-09-01 09:05:24 UTC) #9
fukino
Thanks! I'll update compiled_resources2.gyp on top of this CL in a separate CL, as I ...
4 years, 3 months ago (2016-09-01 12:04:25 UTC) #10
fukino
Oops, I've just uploaded the new patch set. (I forgot to type git cl upload..) ...
4 years, 3 months ago (2016-09-01 13:18:59 UTC) #11
fukino
Ping > oka@ san
4 years, 3 months ago (2016-09-02 05:36:05 UTC) #12
oka
lgtm https://codereview.chromium.org/2292873003/diff/1/ui/file_manager/file_manager/background/js/volume_manager_factory.js File ui/file_manager/file_manager/background/js/volume_manager_factory.js (right): https://codereview.chromium.org/2292873003/diff/1/ui/file_manager/file_manager/background/js/volume_manager_factory.js#newcode26 ui/file_manager/file_manager/background/js/volume_manager_factory.js:26: function getInstance(opt_callback) { On 2016/09/01 12:04:25, fukino wrote: ...
4 years, 3 months ago (2016-09-02 06:01:52 UTC) #13
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/2292873003/20001
4 years, 3 months ago (2016-09-02 06:55:31 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-02 07:00:13 UTC) #21
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 07:03:07 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a5abef97afdb57b24e5bce63fb10054ca0266b91
Cr-Commit-Position: refs/heads/master@{#416205}

Powered by Google App Engine
This is Rietveld 408576698