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

Issue 9701063: Fix file manager to better handle missing roots and scan failure (Closed)

Created:
8 years, 9 months ago by Rick Byers
Modified:
8 years, 9 months ago
Reviewers:
rginda, bshe
CC:
chromium-reviews, rginda+watch_chromium.org, arv (Not doing code reviews), Ben Chan
Visibility:
Public.

Description

Fix file manager to better handle missing roots and scan failure On device, FileManager should always see at least one root (Downloads), but when doing development on Linux some engineers may not have any local paths setup. This CL improves error handling in this case. Also I realized that our directory scan logic is setup to periodically retry (silently dropping the completion callback on the floor) rather than have any hard failure notification. I don't know when this could happen in practice, but if it did it could break my redraw reduction optimization. Similarly, if a scan is aborted (eg. because the active root is quickly changed and a new scan is started) we may not get the callback. I don't see any trivial low-risk solutions to this problem, so given where we are in the schedule I decided it was better to remove this optimization for now rather than risk any further regression. BUG=chromium-os:27241 TEST= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=126968

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix comment style #

Patch Set 3 : Merge with trunk (serya beat me to getting the exception fix in) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -18 lines) Patch
M chrome/browser/resources/file_manager/js/directory_model.js View 1 4 chunks +15 lines, -6 lines 0 comments Download
M chrome/browser/resources/file_manager/js/file_manager.js View 1 2 4 chunks +4 lines, -12 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Rick Byers
8 years, 9 months ago (2012-03-15 14:53:50 UTC) #1
rginda
LGTM with a nit. I'm still working on getting my full-commiter bit set, so this ...
8 years, 9 months ago (2012-03-15 17:42:09 UTC) #2
bshe
On 2012/03/15 17:42:09, rginda wrote: > LGTM with a nit. > > I'm still working ...
8 years, 9 months ago (2012-03-15 17:59:17 UTC) #3
Rick Byers
Thanks guys! https://chromiumcodereview.appspot.com/9701063/diff/1/chrome/browser/resources/file_manager/js/directory_model.js File chrome/browser/resources/file_manager/js/directory_model.js (right): https://chromiumcodereview.appspot.com/9701063/diff/1/chrome/browser/resources/file_manager/js/directory_model.js#newcode331 chrome/browser/resources/file_manager/js/directory_model.js:331: * Cancels waiting and scheduled rescans and ...
8 years, 9 months ago (2012-03-15 19:13:31 UTC) #4
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
8 years, 9 months ago (2012-03-15 19:26:43 UTC) #5
Rick Byers
8 years, 9 months ago (2012-03-15 19:31:40 UTC) #6
On 2012/03/15 19:26:43, I haz the power (commit-bot) wrote:
> No LGTM from a valid reviewer yet. Only full committers are accepted.
> Even if an LGTM may have been provided, it was from a non-committer or
> a lowly provisional committer, _not_ a full super star committer.
> See http://www.chromium.org/getting-involved/become-a-committer
> Note that this has nothing to do with OWNERS files.

This should have been enough (bshe is a full committer as of today, and rginda
is an owner).  I'm guessing some cache of full committers is out of date. 
There's probably no point in using the CQ anyway - these are CrOS-specific files
and I've already run CrOS try jobs.  Direct submitting...

Powered by Google App Engine
This is Rietveld 408576698