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

Issue 124933002: Fix restoring after a crash. (Closed)

Created:
6 years, 11 months ago by mtomasz
Modified:
6 years, 11 months ago
Reviewers:
hirono
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org, arv+watch_chromium.org
Visibility:
Public.

Description

Fix restoring after a crash. When opened selected a USB volume in Files app, and crashed, the Files app is tried to be restored with the previous path. However, the volume may not yet be available. In such case, parent is considered. However, parent is /removable, which resolving causes an error, resulting in throwing an exception and going into a wrong state. In such situation, we should fallback, and this is what this patch does. If the parent is not resolvable, then the fallback is used as the next current directory instead. Moreover, after recent refactoring a regression has been introduced. When resolving a parent of the initial directory fails, then a wrong variable name was used, what caused a JS error. TEST=Tested manually on Pixel. BUG=331587 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243538

Patch Set 1 #

Patch Set 2 : Fixed another bug. #

Total comments: 2

Patch Set 3 : Fixed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -5 lines) Patch
M chrome/browser/resources/file_manager/foreground/js/file_manager.js View 1 2 2 chunks +26 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
mtomasz
@hirono: PTAL. Thanks!
6 years, 11 months ago (2014-01-06 08:26:39 UTC) #1
hirono
lgtm with a nit. Thank you for fixing it! https://codereview.chromium.org/124933002/diff/30001/chrome/browser/resources/file_manager/foreground/js/file_manager.js File chrome/browser/resources/file_manager/foreground/js/file_manager.js (right): https://codereview.chromium.org/124933002/diff/30001/chrome/browser/resources/file_manager/foreground/js/file_manager.js#newcode1517 chrome/browser/resources/file_manager/foreground/js/file_manager.js:1517: ...
6 years, 11 months ago (2014-01-06 10:20:11 UTC) #2
mtomasz
https://codereview.chromium.org/124933002/diff/30001/chrome/browser/resources/file_manager/foreground/js/file_manager.js File chrome/browser/resources/file_manager/foreground/js/file_manager.js (right): https://codereview.chromium.org/124933002/diff/30001/chrome/browser/resources/file_manager/foreground/js/file_manager.js#newcode1517 chrome/browser/resources/file_manager/foreground/js/file_manager.js:1517: function() { On 2014/01/06 10:20:11, hirono wrote: > We ...
6 years, 11 months ago (2014-01-07 00:52:10 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/124933002/80001
6 years, 11 months ago (2014-01-07 00:54:25 UTC) #4
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=242301
6 years, 11 months ago (2014-01-07 12:26:10 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/124933002/80001
6 years, 11 months ago (2014-01-08 01:35:32 UTC) #6
commit-bot: I haz the power
6 years, 11 months ago (2014-01-08 12:46:43 UTC) #7
Message was sent while issue was closed.
Change committed as 243538

Powered by Google App Engine
This is Rietveld 408576698