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

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

Issue 11088074: Files app: Update directory contents properly while Drive files are being fetched (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/directory_model.js
diff --git a/chrome/browser/resources/file_manager/js/directory_model.js b/chrome/browser/resources/file_manager/js/directory_model.js
index 1d809bc595ab1382947eb8e8cf9d2ddde2ae9611..33fea88585ad004854ba99b4c214773d2c42b3da 100644
--- a/chrome/browser/resources/file_manager/js/directory_model.js
+++ b/chrome/browser/resources/file_manager/js/directory_model.js
@@ -770,7 +770,9 @@ DirectoryModel.prototype.changeDirectoryEntrySilent_ = function(dirEntry,
*/
DirectoryModel.prototype.changeDirectoryEntry_ = function(initial, dirEntry,
opt_callback) {
- if (dirEntry == DirectoryModel.fakeGDataEntry_)
+ if (dirEntry == DirectoryModel.fakeGDataEntry_ &&
+ this.volumeManager_.getGDataStatus() ==
+ VolumeManager.GDataStatus.UNMOUNTED)
this.volumeManager_.mountGData(function() {}, function() {});
this.clearSearch_();
@@ -1081,11 +1083,12 @@ DirectoryModel.prototype.updateRootsListSelection_ = function() {
};
/**
- * @return {true} True if GDATA mounted.
+ * @return {boolean} True if GDATA if fully mounted.
dgozman 2012/10/11 12:25:43 typo: if -> is
* @private
*/
DirectoryModel.prototype.isGDataMounted_ = function() {
- return this.volumeManager_.isMounted(RootDirectory.GDATA);
+ return this.volumeManager_.getGDataStatus() ==
+ VolumeManager.GDataStatus.MOUNTED;
};
/**
« 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