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

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

Issue 9836086: Added logic that will return the result of the first chunk of root feed and continue fetching the r… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 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
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 faace6210909b12b43f2686bf4f1414bb07e33e1..7c507bdccf39a075cdb27e1dc387ec71caf4f64a 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -3470,11 +3470,7 @@ FileManager.prototype = {
this.watchedDirectoryUrl_ = null;
}
- if (event.newDirEntry.fullPath != '/' &&
- DirectoryModel.getRootType(event.newDirEntry.fullPath) !=
- DirectoryModel.GDATA_DIRECTORY) {
- // Currently file watchers do not work on GData. When they start working
- // we should be careful not to watch GData before it is mounted.
+ if (event.newDirEntry.fullPath != '/') {
this.watchedDirectoryUrl_ = event.newDirEntry.toURL();
chrome.fileBrowserPrivate.addFileWatch(this.watchedDirectoryUrl_,
function(result) {

Powered by Google App Engine
This is Rietveld 408576698