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

Unified Diff: ui/file_manager/file_manager/foreground/js/directory_model.js

Issue 1150473002: Remove watchers spam from log. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 5 years, 7 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 | ui/file_manager/file_manager/foreground/js/file_watcher.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/directory_model.js
diff --git a/ui/file_manager/file_manager/foreground/js/directory_model.js b/ui/file_manager/file_manager/foreground/js/directory_model.js
index 5a658a5215a743ae934a3ac2f110ac5077c4fd5e..9675f2b35f42115c83642fdd7ec25a660670fe0f 100644
--- a/ui/file_manager/file_manager/foreground/js/directory_model.js
+++ b/ui/file_manager/file_manager/foreground/js/directory_model.js
@@ -945,9 +945,8 @@ DirectoryModel.prototype.changeDirectoryEntry = function(
this.currentDirContents_.cancelScan();
this.directoryChangeQueue_.run(function(sequence, queueTaskCallback) {
- this.fileWatcher_.changeWatchedDirectory(
- dirEntry,
- function() {
+ this.fileWatcher_.changeWatchedDirectory(dirEntry)
+ .then(function() {
if (this.changeDirectorySequence_ !== sequence) {
queueTaskCallback();
return;
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/js/file_watcher.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698