Index: chrome/browser/resources/file_manager/js/file_manager.js |
diff --git a/chrome/browser/resources/file_manager/js/file_manager.js b/chrome/browser/resources/file_manager/js/file_manager.js |
index e33233d18d07d514f65ca03bfebd0dde6e082d63..9dcc94457a4b40bd3f10c54f9c58d4e30c5154e6 100644 |
--- a/chrome/browser/resources/file_manager/js/file_manager.js |
+++ b/chrome/browser/resources/file_manager/js/file_manager.js |
@@ -3778,8 +3778,11 @@ FileManager.prototype = { |
// an object with 'path' and 'date' properties. |
this.lastLabelClick_ = null; |
- var dirEntry = event.newDirEntry; |
- this.updateLocation_(event.initial, dirEntry.fullPath); |
+ // Sometimes we rescan the same directory (when mounting GData lazily first, |
+ // then for real). Do not update the location then. |
+ if (event.newDirEntry.fullPath != event.previousDirEntry.fullPath) { |
+ this.updateLocation_(event.initial, event.newDirEntry.fullPath); |
+ } |
this.checkFreeSpace_(this.getCurrentDirectory()); |