|
|
Created:
3 years, 8 months ago by oka Modified:
3 years, 7 months ago Reviewers:
fukino CC:
chromium-reviews, yamaguchi+watch_chromium.org, oka+watch_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, jlklein+watch-closure_chromium.org, fukino+watch_chromium.org, vitalyp+closure_chromium.org, dbeam+watch-closure_chromium.org Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionCompile file_transfer_controller in gyp v2
- Removed dependency from file_transfor_controller to CommandHandler by
registering the needed function from FileManager to
FileTransferController as a constructor parameter.
- Added drop_effect_and_label to compile target.
BUG=636289
TEST=run_compiler
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Review-Url: https://codereview.chromium.org/2830223003
Cr-Commit-Position: refs/heads/master@{#467912}
Committed: https://chromium.googlesource.com/chromium/src/+/8a09e380ca0d6d41a52d066da4b288dacc29f40e
Patch Set 1 #Patch Set 2 : rebase. #Patch Set 3 : . #Patch Set 4 : . #Patch Set 5 : . #Patch Set 6 : . #
Total comments: 6
Patch Set 7 : Addressed comment. #Patch Set 8 : Register callback from FileManager to FileTransferController. #Patch Set 9 : Format. #Patch Set 10 : . #Patch Set 11 : . #Patch Set 12 : Fix typo. #
Dependent Patchsets: Messages
Total messages: 52 (31 generated)
Description was changed from ========== Compile file_transfer_controller. BUG=636289 ========== to ========== Compile file_transfer_controller. BUG=636289 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
The CQ bit was checked by oka@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
Description was changed from ========== Compile file_transfer_controller. BUG=636289 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== Compile file_transfer_controller. - Extracted the function to extend cr.ui.Command into a separate file - Moved two functions in CommandUtil to VolumeManagerWrapper - Avoid to use private memebers of file_manager in file_manager_command BUG=636289 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
Description was changed from ========== Compile file_transfer_controller. - Extracted the function to extend cr.ui.Command into a separate file - Moved two functions in CommandUtil to VolumeManagerWrapper - Avoid to use private memebers of file_manager in file_manager_command BUG=636289 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== Compile file_transfer_controller. - Extracted the function to extend cr.ui.Command into a separate file - Moved two functions in CommandUtil to VolumeManagerWrapper - Avoided to use private memebers of file_manager in file_manager_command (used the equivalent getters instead) BUG=636289 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
Description was changed from ========== Compile file_transfer_controller. - Extracted the function to extend cr.ui.Command into a separate file - Moved two functions in CommandUtil to VolumeManagerWrapper - Avoided to use private memebers of file_manager in file_manager_command (used the equivalent getters instead) BUG=636289 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== Compile file_transfer_controller. - Extracted the function to extend cr.ui.Command into a separate file - Moved two functions in CommandUtil to VolumeManagerWrapper - Avoided to use private memebers of file_manager in file_manager_command (used the equivalent getters instead) BUG=636289 TEST=run_compiler CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
rebase.
.
The CQ bit was checked by oka@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Compile file_transfer_controller. - Extracted the function to extend cr.ui.Command into a separate file - Moved two functions in CommandUtil to VolumeManagerWrapper - Avoided to use private memebers of file_manager in file_manager_command (used the equivalent getters instead) BUG=636289 TEST=run_compiler CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== Compile file_transfer_controller. - Extracted the function to extend cr.ui.Command into a separate file - Moved two functions in CommandUtil to VolumeManagerWrapper - Avoided to use private members of file_manager in file_manager_command (used the equivalent getters instead) BUG=636289 TEST=run_compiler CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
Description was changed from ========== Compile file_transfer_controller. - Extracted the function to extend cr.ui.Command into a separate file - Moved two functions in CommandUtil to VolumeManagerWrapper - Avoided to use private members of file_manager in file_manager_command (used the equivalent getters instead) BUG=636289 TEST=run_compiler CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== Compile file_transfer_controller. - Extracted the function to extend cr.ui.Command into a separate file - Moved two functions in CommandUtil to VolumeManagerWrapper - Avoided to use private members of file_manager in file_manager_command (used the equivalent getters instead) - Added drop_effect_and_label to compile target. BUG=636289 TEST=run_compiler CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
.
The CQ bit was checked by oka@chromium.org to run a CQ dry run
.
.
The CQ bit was checked by oka@chromium.org to run a CQ dry run
The CQ bit was checked by oka@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Compile file_transfer_controller. - Extracted the function to extend cr.ui.Command into a separate file - Moved two functions in CommandUtil to VolumeManagerWrapper - Avoided to use private members of file_manager in file_manager_command (used the equivalent getters instead) - Added drop_effect_and_label to compile target. BUG=636289 TEST=run_compiler CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== Compile file_transfer_controller in gyp v2 - Extracted the function to extend cr.ui.Command into a separate file - Moved two functions in CommandUtil to VolumeManagerWrapper - Avoided to use private members of file_manager in file_manager_command (used the equivalent getters instead) - Added drop_effect_and_label to compile target. BUG=636289 TEST=run_compiler CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
oka@chromium.org changed reviewers: + fukino@chromium.org
PTAL.
https://codereview.chromium.org/2830223003/diff/100001/ui/file_manager/file_m... File ui/file_manager/file_manager/foreground/js/compiled_resources2.gyp (right): https://codereview.chromium.org/2830223003/diff/100001/ui/file_manager/file_m... ui/file_manager/file_manager/foreground/js/compiled_resources2.gyp:186: '../../background/js/compiled_resources2.gyp:file_operation_manager', TODO comment is dropped unintentionally? https://codereview.chromium.org/2830223003/diff/100001/ui/file_manager/file_m... File ui/file_manager/file_manager/foreground/js/volume_manager_wrapper.js (right): https://codereview.chromium.org/2830223003/diff/100001/ui/file_manager/file_m... ui/file_manager/file_manager/foreground/js/volume_manager_wrapper.js:401: VolumeManagerWrapper.prototype.shouldShowMenuItemForEntry = function(entry) { Considering the VolumeManagerWrapper's responsibility ("Thin wrapper for VolumeManager."), having these UI-related methods looks a bit strange to me. If it doesn't fit in the CommandUtil, how about moving them to common or util (and replace {VolumeManagerWrapper} with {VolumeManagerCommon.VolumeInfoProvider}?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
PTAL https://codereview.chromium.org/2830223003/diff/100001/ui/file_manager/file_m... File ui/file_manager/file_manager/foreground/js/compiled_resources2.gyp (right): https://codereview.chromium.org/2830223003/diff/100001/ui/file_manager/file_m... ui/file_manager/file_manager/foreground/js/compiled_resources2.gyp:186: '../../background/js/compiled_resources2.gyp:file_operation_manager', On 2017/04/21 07:36:58, fukino wrote: > TODO comment is dropped unintentionally? Done. https://codereview.chromium.org/2830223003/diff/100001/ui/file_manager/file_m... File ui/file_manager/file_manager/foreground/js/volume_manager_wrapper.js (right): https://codereview.chromium.org/2830223003/diff/100001/ui/file_manager/file_m... ui/file_manager/file_manager/foreground/js/volume_manager_wrapper.js:401: VolumeManagerWrapper.prototype.shouldShowMenuItemForEntry = function(entry) { On 2017/04/21 07:36:59, fukino wrote: > Considering the VolumeManagerWrapper's responsibility ("Thin wrapper for > VolumeManager."), having these UI-related methods looks a bit strange to me. > > If it doesn't fit in the CommandUtil, how about moving them to common or util > (and replace {VolumeManagerWrapper} with > {VolumeManagerCommon.VolumeInfoProvider}? Maybe can I just rename this method to isValidNonRootEntry?
https://codereview.chromium.org/2830223003/diff/100001/ui/file_manager/file_m... File ui/file_manager/file_manager/foreground/js/volume_manager_wrapper.js (right): https://codereview.chromium.org/2830223003/diff/100001/ui/file_manager/file_m... ui/file_manager/file_manager/foreground/js/volume_manager_wrapper.js:401: VolumeManagerWrapper.prototype.shouldShowMenuItemForEntry = function(entry) { On 2017/04/27 05:00:53, oka wrote: > On 2017/04/21 07:36:59, fukino wrote: > > Considering the VolumeManagerWrapper's responsibility ("Thin wrapper for > > VolumeManager."), having these UI-related methods looks a bit strange to me. > > > > If it doesn't fit in the CommandUtil, how about moving them to common or util > > (and replace {VolumeManagerWrapper} with > > {VolumeManagerCommon.VolumeInfoProvider}? > > Maybe can I just rename this method to isValidNonRootEntry? Even when the function is renamed, the login inside it have to be tightly connected with UI spec. Didn't my suggestions work?
https://codereview.chromium.org/2830223003/diff/100001/ui/file_manager/file_m... File ui/file_manager/file_manager/foreground/js/volume_manager_wrapper.js (right): https://codereview.chromium.org/2830223003/diff/100001/ui/file_manager/file_m... ui/file_manager/file_manager/foreground/js/volume_manager_wrapper.js:401: VolumeManagerWrapper.prototype.shouldShowMenuItemForEntry = function(entry) { On 2017/04/27 06:07:53, fukino wrote: > On 2017/04/27 05:00:53, oka wrote: > > On 2017/04/21 07:36:59, fukino wrote: > > > Considering the VolumeManagerWrapper's responsibility ("Thin wrapper for > > > VolumeManager."), having these UI-related methods looks a bit strange to me. > > > > > > If it doesn't fit in the CommandUtil, how about moving them to common or > util > > > (and replace {VolumeManagerWrapper} with > > > {VolumeManagerCommon.VolumeInfoProvider}? > > > > Maybe can I just rename this method to isValidNonRootEntry? > > Even when the function is renamed, the login inside it have to be tightly > connected with UI spec. > Didn't my suggestions work? OK. To which file did you suggest to move the function?
On 2017/04/27 06:35:18, oka wrote: > https://codereview.chromium.org/2830223003/diff/100001/ui/file_manager/file_m... > File ui/file_manager/file_manager/foreground/js/volume_manager_wrapper.js > (right): > > https://codereview.chromium.org/2830223003/diff/100001/ui/file_manager/file_m... > ui/file_manager/file_manager/foreground/js/volume_manager_wrapper.js:401: > VolumeManagerWrapper.prototype.shouldShowMenuItemForEntry = function(entry) { > On 2017/04/27 06:07:53, fukino wrote: > > On 2017/04/27 05:00:53, oka wrote: > > > On 2017/04/21 07:36:59, fukino wrote: > > > > Considering the VolumeManagerWrapper's responsibility ("Thin wrapper for > > > > VolumeManager."), having these UI-related methods looks a bit strange to > me. > > > > > > > > If it doesn't fit in the CommandUtil, how about moving them to common or > > util > > > > (and replace {VolumeManagerWrapper} with > > > > {VolumeManagerCommon.VolumeInfoProvider}? > > > > > > Maybe can I just rename this method to isValidNonRootEntry? > > > > Even when the function is renamed, the login inside it have to be tightly > > connected with UI spec. > > Didn't my suggestions work? > > OK. To which file did you suggest to move the function? Talked offline. To remove dependency from file_transfer_controller to file_manager_commands, FileManager will register the function in CommandUtil to FileTransfer as a callback.
Register callback from FileManager to FileTransferController.
Format.
.
Description was changed from ========== Compile file_transfer_controller in gyp v2 - Extracted the function to extend cr.ui.Command into a separate file - Moved two functions in CommandUtil to VolumeManagerWrapper - Avoided to use private members of file_manager in file_manager_command (used the equivalent getters instead) - Added drop_effect_and_label to compile target. BUG=636289 TEST=run_compiler CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== Compile file_transfer_controller in gyp v2 - Removed dependency from file_transfor_controller to CommandHandler by registering the needed function from FileManager to FileTransferController as a constructor parameter. - Added drop_effect_and_label to compile target. BUG=636289 TEST=run_compiler CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
.
The CQ bit was checked by oka@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
PTAL.
lgtm. Thanks!
Fix typo.
The CQ bit was checked by oka@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by oka@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from fukino@chromium.org Link to the patchset: https://codereview.chromium.org/2830223003/#ps220001 (title: "Fix typo.")
The CQ bit was unchecked by oka@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by oka@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 220001, "attempt_start_ts": 1493358529205480, "parent_rev": "88d1d186845613b22258b6ad4eb168a4f63d8432", "commit_rev": "8a09e380ca0d6d41a52d066da4b288dacc29f40e"}
Message was sent while issue was closed.
Description was changed from ========== Compile file_transfer_controller in gyp v2 - Removed dependency from file_transfor_controller to CommandHandler by registering the needed function from FileManager to FileTransferController as a constructor parameter. - Added drop_effect_and_label to compile target. BUG=636289 TEST=run_compiler CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== Compile file_transfer_controller in gyp v2 - Removed dependency from file_transfor_controller to CommandHandler by registering the needed function from FileManager to FileTransferController as a constructor parameter. - Added drop_effect_and_label to compile target. BUG=636289 TEST=run_compiler CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2830223003 Cr-Commit-Position: refs/heads/master@{#467912} Committed: https://chromium.googlesource.com/chromium/src/+/8a09e380ca0d6d41a52d066da4b2... ==========
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as https://chromium.googlesource.com/chromium/src/+/8a09e380ca0d6d41a52d066da4b2... |