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

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

Issue 550863003: Rename fileBrowserPrivate to fileManagerPrivate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: ui/file_manager/file_manager/foreground/js/file_watcher.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_watcher.js b/ui/file_manager/file_manager/foreground/js/file_watcher.js
index 67ce04c515b2d84bc57bf344d410d624f113822a..12da4433dffd9076fa1e6011679b23d4f252962b 100644
--- a/ui/file_manager/file_manager/foreground/js/file_watcher.js
+++ b/ui/file_manager/file_manager/foreground/js/file_watcher.js
@@ -18,7 +18,7 @@ function FileWatcher(metadataCache) {
this.watchedDirectoryEntry_ = null;
this.onDirectoryChangedBound_ = this.onDirectoryChanged_.bind(this);
- chrome.fileBrowserPrivate.onDirectoryChanged.addListener(
+ chrome.fileManagerPrivate.onDirectoryChanged.addListener(
this.onDirectoryChangedBound_);
this.filesystemMetadataObserverId_ = null;
@@ -35,7 +35,7 @@ FileWatcher.prototype.__proto__ = cr.EventTarget.prototype;
* Stops watching (must be called before page unload).
*/
FileWatcher.prototype.dispose = function() {
- chrome.fileBrowserPrivate.onDirectoryChanged.removeListener(
+ chrome.fileManagerPrivate.onDirectoryChanged.removeListener(
this.onDirectoryChangedBound_);
if (this.watchedDirectoryEntry_)
this.resetWatchedEntry_(function() {}, function() {});
@@ -153,7 +153,7 @@ FileWatcher.prototype.resetWatchedEntry_ = function(onSuccess, onError) {
this.queue_.run(function(callback) {
// Release the watched directory.
if (this.watchedDirectoryEntry_) {
- chrome.fileBrowserPrivate.removeFileWatch(
+ chrome.fileManagerPrivate.removeFileWatch(
this.watchedDirectoryEntry_.toURL(),
function(result) {
this.watchedDirectoryEntry_ = null;
@@ -186,7 +186,7 @@ FileWatcher.prototype.changeWatchedEntry_ = function(
var setEntryClosure = function() {
// Run the tasks in the queue to avoid races.
this.queue_.run(function(callback) {
- chrome.fileBrowserPrivate.addFileWatch(
+ chrome.fileManagerPrivate.addFileWatch(
entry.toURL(),
function(result) {
if (!result) {

Powered by Google App Engine
This is Rietveld 408576698