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

Unified Diff: chrome/browser/resources/file_manager/js/file_manager.js

Issue 10065039: [File Manager] Fix history state for GData folder navigation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Better comment Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698