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

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

Issue 10630026: [FileBrowser] Fixed GDrive auto-refresh on settings altering. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplified code. Created 8 years, 6 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 740deadfb0ceb9b70a0704f79c89bab3bb6d9f8e..b67d20d62a71ac746ef3a238ab5c21bc77712d91 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -2814,6 +2814,11 @@ FileManager.prototype = {
else
self.syncButton.removeAttribute('checked');
+ if (self.hostedButton.hasAttribute('checked') !=
+ gdata.hostedFilesDisabled && self.isOnGData()) {
+ self.directoryModel_.rescan();
+ }
+
if (!gdata.hostedFilesDisabled)
self.hostedButton.setAttribute('checked', '');
else
« 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