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

Unified Diff: ui/file_manager/file_manager/background/js/volume_manager.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/background/js/volume_manager.js
diff --git a/ui/file_manager/file_manager/background/js/volume_manager.js b/ui/file_manager/file_manager/background/js/volume_manager.js
index 1abcec03435b16cbda6efab9ff407e8424a2bc04..050f3428e49718960dc70f902e95e40128453957 100644
--- a/ui/file_manager/file_manager/background/js/volume_manager.js
+++ b/ui/file_manager/file_manager/background/js/volume_manager.js
@@ -221,7 +221,7 @@ volumeManagerUtil.createVolumeInfo = function(volumeMetadata, callback) {
break;
}
- chrome.fileBrowserPrivate.requestFileSystem(
+ chrome.fileManagerPrivate.requestFileSystem(
volumeMetadata.volumeId,
function(fileSystem) {
// TODO(mtomasz): chrome.runtime.lastError should have error reason.
@@ -448,7 +448,7 @@ function VolumeManager() {
reason: VolumeManagerCommon.DriveConnectionReason.NO_SERVICE
};
- chrome.fileBrowserPrivate.onDriveConnectionStatusChanged.addListener(
+ chrome.fileManagerPrivate.onDriveConnectionStatusChanged.addListener(
this.onDriveConnectionStatusChanged_.bind(this));
this.onDriveConnectionStatusChanged_();
}
@@ -458,7 +458,7 @@ function VolumeManager() {
* @private_
*/
VolumeManager.prototype.onDriveConnectionStatusChanged_ = function() {
- chrome.fileBrowserPrivate.getDriveConnectionState(function(state) {
+ chrome.fileManagerPrivate.getDriveConnectionState(function(state) {
this.driveConnectionState_ = state;
cr.dispatchSimpleEvent(this, 'drive-connection-changed');
}.bind(this));
@@ -531,7 +531,7 @@ VolumeManager.getInstance = function(callback) {
* @private
*/
VolumeManager.prototype.initialize_ = function(callback) {
- chrome.fileBrowserPrivate.getVolumeMetadataList(function(volumeMetadataList) {
+ chrome.fileManagerPrivate.getVolumeMetadataList(function(volumeMetadataList) {
// We must subscribe to the mount completed event in the callback of
// getVolumeMetadataList. crbug.com/330061.
// But volumes reported by onMountCompleted events must be added after the
@@ -561,7 +561,7 @@ VolumeManager.prototype.initialize_ = function(callback) {
});
}.bind(this));
- chrome.fileBrowserPrivate.onMountCompleted.addListener(
+ chrome.fileManagerPrivate.onMountCompleted.addListener(
this.onMountCompleted_.bind(this));
}.bind(this));
};
@@ -657,7 +657,7 @@ VolumeManager.prototype.makeRequestKey_ = function(requestType, argument) {
*/
VolumeManager.prototype.mountArchive = function(
fileUrl, successCallback, errorCallback) {
- chrome.fileBrowserPrivate.addMount(fileUrl, function(sourcePath) {
+ chrome.fileManagerPrivate.addMount(fileUrl, function(sourcePath) {
console.info(
'Mount request: url=' + fileUrl + '; sourcePath=' + sourcePath);
var requestKey = this.makeRequestKey_('mount', sourcePath);
@@ -675,7 +675,7 @@ VolumeManager.prototype.mountArchive = function(
VolumeManager.prototype.unmount = function(volumeInfo,
successCallback,
errorCallback) {
- chrome.fileBrowserPrivate.removeMount(volumeInfo.volumeId);
+ chrome.fileManagerPrivate.removeMount(volumeInfo.volumeId);
var requestKey = this.makeRequestKey_('unmount', volumeInfo.volumeId);
this.startRequest_(requestKey, successCallback, errorCallback);
};
« no previous file with comments | « ui/file_manager/file_manager/background/js/test_util.js ('k') | ui/file_manager/file_manager/common/js/util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698