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

Issue 25278002: Extract ContentScanner from DirectoryContent. (Closed)

Created:
7 years, 2 months ago by hidehiko
Modified:
7 years, 2 months ago
Reviewers:
mtomasz
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org, arv+watch_chromium.org, yoshiki
Visibility:
Public.

Description

Extract ContentScanner from DirectoryContent. DirectoryContent had basically two functions. 1) The list of entries. 2) The scanning entries from backend. This CL extracts 2) part from DirectoryContent and create ContentScanner to simplify the code path. At the same time, some events sent from DirectoryContent was resorted, and their handlers in FileManager is fixed at the same time. BUG=279614 TEST=Ran browser_tests --gtest_filter="*FileSystemExtensionApiTest*:*FileManagerBrowserTest*:*FileBrowserPrivateApiTest*" and tested manually. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226420

Patch Set 1 #

Total comments: 36

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+471 lines, -310 lines) Patch
M chrome/browser/resources/file_manager/js/async_util.js View 1 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/resources/file_manager/js/directory_contents.js View 1 2 3 16 chunks +423 lines, -281 lines 0 comments Download
M chrome/browser/resources/file_manager/js/directory_model.js View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/resources/file_manager/js/file_manager.js View 1 2 3 4 4 chunks +28 lines, -25 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
hidehiko
Thank you for your review in advance. (cc: yoshiki@ just in case for the conflicting). ...
7 years, 2 months ago (2013-09-30 14:37:00 UTC) #1
mtomasz
https://codereview.chromium.org/25278002/diff/1/chrome/browser/resources/file_manager/js/async_util.js File chrome/browser/resources/file_manager/js/async_util.js (right): https://codereview.chromium.org/25278002/diff/1/chrome/browser/resources/file_manager/js/async_util.js#newcode93 chrome/browser/resources/file_manager/js/async_util.js:93: AsyncUtil.Queue.prototype.cancel = function() { FYI: A more complete cancellation ...
7 years, 2 months ago (2013-10-01 02:13:43 UTC) #2
mtomasz
https://codereview.chromium.org/25278002/diff/1/chrome/browser/resources/file_manager/js/file_manager.js File chrome/browser/resources/file_manager/js/file_manager.js (right): https://codereview.chromium.org/25278002/diff/1/chrome/browser/resources/file_manager/js/file_manager.js#newcode2791 chrome/browser/resources/file_manager/js/file_manager.js:2791: if (this.scanInProgress_) { This will always return true because ...
7 years, 2 months ago (2013-10-01 02:25:23 UTC) #3
mtomasz
https://codereview.chromium.org/25278002/diff/1/chrome/browser/resources/file_manager/js/directory_contents.js File chrome/browser/resources/file_manager/js/directory_contents.js (right): https://codereview.chromium.org/25278002/diff/1/chrome/browser/resources/file_manager/js/directory_contents.js#newcode695 chrome/browser/resources/file_manager/js/directory_contents.js:695: this.scanner_ = new DirectoryContentScanner(this.entry_); Do we need to create ...
7 years, 2 months ago (2013-10-01 02:36:39 UTC) #4
hidehiko
Thank you for your review. PTAL? https://codereview.chromium.org/25278002/diff/1/chrome/browser/resources/file_manager/js/async_util.js File chrome/browser/resources/file_manager/js/async_util.js (right): https://codereview.chromium.org/25278002/diff/1/chrome/browser/resources/file_manager/js/async_util.js#newcode93 chrome/browser/resources/file_manager/js/async_util.js:93: AsyncUtil.Queue.prototype.cancel = function() ...
7 years, 2 months ago (2013-10-01 04:12:23 UTC) #5
mtomasz
lgtm with one comment https://codereview.chromium.org/25278002/diff/1/chrome/browser/resources/file_manager/js/directory_contents.js File chrome/browser/resources/file_manager/js/directory_contents.js (right): https://codereview.chromium.org/25278002/diff/1/chrome/browser/resources/file_manager/js/directory_contents.js#newcode695 chrome/browser/resources/file_manager/js/directory_contents.js:695: this.scanner_ = new DirectoryContentScanner(this.entry_); On ...
7 years, 2 months ago (2013-10-01 04:39:55 UTC) #6
hidehiko
Thank you for your review! https://codereview.chromium.org/25278002/diff/1/chrome/browser/resources/file_manager/js/directory_contents.js File chrome/browser/resources/file_manager/js/directory_contents.js (right): https://codereview.chromium.org/25278002/diff/1/chrome/browser/resources/file_manager/js/directory_contents.js#newcode695 chrome/browser/resources/file_manager/js/directory_contents.js:695: this.scanner_ = new DirectoryContentScanner(this.entry_); ...
7 years, 2 months ago (2013-10-01 05:28:16 UTC) #7
mtomasz
lgtm with a nit https://codereview.chromium.org/25278002/diff/10001/chrome/browser/resources/file_manager/js/directory_contents.js File chrome/browser/resources/file_manager/js/directory_contents.js (right): https://codereview.chromium.org/25278002/diff/10001/chrome/browser/resources/file_manager/js/directory_contents.js#newcode707 chrome/browser/resources/file_manager/js/directory_contents.js:707: // TODO: this scan method ...
7 years, 2 months ago (2013-10-01 05:39:37 UTC) #8
hidehiko
Thank you for your review. https://codereview.chromium.org/25278002/diff/10001/chrome/browser/resources/file_manager/js/directory_contents.js File chrome/browser/resources/file_manager/js/directory_contents.js (right): https://codereview.chromium.org/25278002/diff/10001/chrome/browser/resources/file_manager/js/directory_contents.js#newcode707 chrome/browser/resources/file_manager/js/directory_contents.js:707: // TODO: this scan ...
7 years, 2 months ago (2013-10-01 05:54:03 UTC) #9
mtomasz
lgtm
7 years, 2 months ago (2013-10-01 06:37:05 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/25278002/25001
7 years, 2 months ago (2013-10-02 03:25:02 UTC) #11
commit-bot: I haz the power
7 years, 2 months ago (2013-10-02 07:41:29 UTC) #12
Message was sent while issue was closed.
Change committed as 226420

Powered by Google App Engine
This is Rietveld 408576698