|
|
Created:
6 years, 10 months ago by hirono Modified:
6 years, 10 months ago Reviewers:
mtomasz CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org, arv+watch_chromium.org Base URL:
svn://svn.chromium.org/chrome/trunk/src Visibility:
Public. |
DescriptionFiles.app: Clean DirectoryModel.
This CL do random cleanup involved with DirectoryModel.
* Remove unused parameters and variables.
* Remove methods that just delegates to another method or are called from one
place, in order to reduce the number of jump when reading codes.
* Merge the specialSearch method into changeDirectoryEntry by extracting the
difference of the two mehtods to createDirectoryContents_.
BUG=none
TEST=manually
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248919
Patch Set 1 : #
Total comments: 10
Patch Set 2 : Fixed #Patch Set 3 : Fixed a test. #
Messages
Total messages: 37 (0 generated)
PTAL the CL? Thanks!
Nice cleanup. https://codereview.chromium.org/151413002/diff/50001/chrome/browser/resources... File chrome/browser/resources/file_manager/foreground/js/directory_contents.js (left): https://codereview.chromium.org/151413002/diff/50001/chrome/browser/resources... chrome/browser/resources/file_manager/foreground/js/directory_contents.js:523: this.scanner_ = this.scannerFactory_(); I'm getting a JS error after launching Files app here. Please check. https://codereview.chromium.org/151413002/diff/50001/chrome/browser/resources... File chrome/browser/resources/file_manager/foreground/js/directory_contents.js (right): https://codereview.chromium.org/151413002/diff/50001/chrome/browser/resources... chrome/browser/resources/file_manager/foreground/js/directory_contents.js:298: {query: '', types: this.searchType_, maxResults: 500}, nit: Could you please file a bug to remove this argument from private api? https://codereview.chromium.org/151413002/diff/50001/chrome/browser/resources... File chrome/browser/resources/file_manager/foreground/js/directory_model.js (right): https://codereview.chromium.org/151413002/diff/50001/chrome/browser/resources... chrome/browser/resources/file_manager/foreground/js/directory_model.js:779: * @param {opt_query} opt_query Search query string. nit: opt_query -> string= https://codereview.chromium.org/151413002/diff/50001/chrome/browser/resources... chrome/browser/resources/file_manager/foreground/js/directory_model.js:780: * @return {DirectoryEntry} Directory contents. nit: DirectoryEntry -> DirectoryContents https://codereview.chromium.org/151413002/diff/50001/chrome/browser/resources... chrome/browser/resources/file_manager/foreground/js/directory_model.js:799: } if (util.isFakeEntry(entry)) { nit: isFakeEntry -> locationInfo.isSpecialSearchRoot
Thanks! https://codereview.chromium.org/151413002/diff/50001/chrome/browser/resources... File chrome/browser/resources/file_manager/foreground/js/directory_contents.js (left): https://codereview.chromium.org/151413002/diff/50001/chrome/browser/resources... chrome/browser/resources/file_manager/foreground/js/directory_contents.js:523: this.scanner_ = this.scannerFactory_(); On 2014/02/04 02:20:12, mtomasz wrote: > I'm getting a JS error after launching Files app here. Please check. Thanks for handling it. This is caused because the call of the constructor of DirectoryContents in the clone method is wrong. Fixed. https://codereview.chromium.org/151413002/diff/50001/chrome/browser/resources... File chrome/browser/resources/file_manager/foreground/js/directory_contents.js (right): https://codereview.chromium.org/151413002/diff/50001/chrome/browser/resources... chrome/browser/resources/file_manager/foreground/js/directory_contents.js:298: {query: '', types: this.searchType_, maxResults: 500}, On 2014/02/04 02:20:12, mtomasz wrote: > nit: Could you please file a bug to remove this argument from private api? Done. crbug.com/340557. https://codereview.chromium.org/151413002/diff/50001/chrome/browser/resources... File chrome/browser/resources/file_manager/foreground/js/directory_model.js (right): https://codereview.chromium.org/151413002/diff/50001/chrome/browser/resources... chrome/browser/resources/file_manager/foreground/js/directory_model.js:779: * @param {opt_query} opt_query Search query string. On 2014/02/04 02:20:12, mtomasz wrote: > nit: opt_query -> string= Done. https://codereview.chromium.org/151413002/diff/50001/chrome/browser/resources... chrome/browser/resources/file_manager/foreground/js/directory_model.js:780: * @return {DirectoryEntry} Directory contents. On 2014/02/04 02:20:12, mtomasz wrote: > nit: DirectoryEntry -> DirectoryContents Done. https://codereview.chromium.org/151413002/diff/50001/chrome/browser/resources... chrome/browser/resources/file_manager/foreground/js/directory_model.js:799: } if (util.isFakeEntry(entry)) { On 2014/02/04 02:20:12, mtomasz wrote: > nit: isFakeEntry -> locationInfo.isSpecialSearchRoot Done.
lgtm!
The CQ bit was checked by hirono@chromium.org
On 2014/02/04 05:56:00, mtomasz wrote: > lgtm! Thanks!
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/151413002/130001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&...
The CQ bit was checked by hirono@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/151413002/130001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on ios_dbg_simulator for step(s) url_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_si...
The CQ bit was checked by hirono@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/151413002/130001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on ios_dbg_simulator for step(s) url_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_si...
The CQ bit was checked by hirono@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/151413002/130001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on ios_dbg_simulator for step(s) url_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_si...
The CQ bit was checked by hirono@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/151413002/130001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on ios_dbg_simulator for step(s) url_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_si...
The CQ bit was checked by hirono@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/151413002/130001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on ios_dbg_simulator for step(s) url_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_si...
CQ bit was unchecked on CL. Ignoring.
The CQ bit was checked by hirono@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/151413002/130001
The CQ bit was checked by hirono@chromium.org
Failed to trigger a try job on linux_chromeos HTTP Error 400: Bad Request
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/151413002/1110001
Message was sent while issue was closed.
Change committed as 248919 |