Chromium Code Reviews
DescriptionSimplify directory initialization in Files app.
This patch cleans up the initialization code, by separating the current directory from selection. Before, there was only one variable holding either current directory or the selection, and heuristics were used to determine how to interpred the path there.
The new code is also a preparation for migrating to URLs, since there are no more operations on the passed paths on the JS side. Note, that before we were fetching parent of a non existing path, which would be very tricky after migrating to URLs.
And finally, this patch fixes wrong behaviour of the select directory dialog. Since now, the selected directory is really selected, and not opened.
TEST=Tested manually several scenarios. All dialogs + recovering from crash. Drive and Downloads.
BUG=328767, 321962
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247556
Patch Set 1 #
Total comments: 10
Patch Set 2 : Fixed. #
Total comments: 23
Patch Set 3 : Addressed comments. #Patch Set 4 : Rebased. #Patch Set 5 : Fixed tests. #Patch Set 6 : Fixed tests. #Patch Set 7 : Cleaned up. #Messages
Total messages: 21 (0 generated)
|