summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgozman@chromium.org <dgozman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-15 22:40:58 +0000
committerdgozman@chromium.org <dgozman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-15 22:40:58 +0000
commit9ae72621d8692938b1ce3e0a868cdf542a3076c2 (patch)
tree112ab9b3ab816a4a0b85868c8fb7cfebfca19d09
parentf69afe334b1a8b82b5d9a6ac471706222e6c6c1c (diff)
downloadchromium_src-9ae72621d8692938b1ce3e0a868cdf542a3076c2.zip
chromium_src-9ae72621d8692938b1ce3e0a868cdf542a3076c2.tar.gz
chromium_src-9ae72621d8692938b1ce3e0a868cdf542a3076c2.tar.bz2
[filemanager] Fix startup initialization: set current root dir before updating roots.
BUG=164274 TEST=See bug. Review URL: https://chromiumcodereview.appspot.com/11574034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173337 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/resources/file_manager/js/directory_model.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/resources/file_manager/js/directory_model.js b/chrome/browser/resources/file_manager/js/directory_model.js
index b9561b0..9e44f38 100644
--- a/chrome/browser/resources/file_manager/js/directory_model.js
+++ b/chrome/browser/resources/file_manager/js/directory_model.js
@@ -770,8 +770,8 @@ DirectoryModel.prototype.changeDirectoryEntrySilent_ = function(dirEntry,
this.clearAndScan_(new DirectoryContentsBasic(this.currentFileListContext_,
dirEntry),
onScanComplete.bind(this));
- this.updateRootsListSelection_();
this.currentDirByRoot_[this.getCurrentRootPath()] = dirEntry.fullPath;
+ this.updateRootsListSelection_();
};
/**