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

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: 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..874caf714a14ef276d54e09210f989ccccb655f9 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -3778,8 +3778,10 @@ 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, do not update the location then.
SeRya 2012/04/13 12:32:11 I think it's a wrong fix. Rescan doesn't cause di
+ 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