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

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: crash fix 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..0e34d6a95d9ceb54a85a4ecbc395b285948a0ba4 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -3470,11 +3470,9 @@ 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 != '/') {
+ console.log("Adding watch for : " +event.newDirEntry.fullPath);
+ console.log(event);
satorux1 2012/03/25 00:22:26 remove the debug logging?
zel 2012/03/25 02:06:41 Done.
this.watchedDirectoryUrl_ = event.newDirEntry.toURL();
chrome.fileBrowserPrivate.addFileWatch(this.watchedDirectoryUrl_,
function(result) {

Powered by Google App Engine
This is Rietveld 408576698