| Index: ui/file_manager/file_manager/foreground/js/file_manager.js
|
| diff --git a/ui/file_manager/file_manager/foreground/js/file_manager.js b/ui/file_manager/file_manager/foreground/js/file_manager.js
|
| index 57ee6f796e9de5973360e95722e6712e8d8dc7fd..d8fd18d80a98f0d0913756ce84c20ef0cefe7108 100644
|
| --- a/ui/file_manager/file_manager/foreground/js/file_manager.js
|
| +++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
|
| @@ -305,7 +305,7 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
|
|
|
| var stateChangeHandler =
|
| this.onPreferencesChanged_.bind(this);
|
| - chrome.fileBrowserPrivate.onPreferencesChanged.addListener(
|
| + chrome.fileManagerPrivate.onPreferencesChanged.addListener(
|
| stateChangeHandler);
|
| stateChangeHandler();
|
|
|
| @@ -1772,7 +1772,7 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
|
| FileManager.prototype.onDefaultTaskDone_ = function(task) {
|
| // TODO(dgozman): move this method closer to tasks.
|
| var selection = this.getSelection();
|
| - chrome.fileBrowserPrivate.setDefaultTask(
|
| + chrome.fileManagerPrivate.setDefaultTask(
|
| task.taskId,
|
| util.entriesToURLs(selection.entries),
|
| selection.mimeTypes);
|
| @@ -2186,7 +2186,7 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
|
| volumeSpaceInnerBar.style.width = '100%';
|
| }
|
|
|
| - chrome.fileBrowserPrivate.getSizeStats(
|
| + chrome.fileManagerPrivate.getSizeStats(
|
| currentVolumeInfo.volumeId, function(result) {
|
| var volumeInfo = this.volumeManager_.getVolumeInfo(
|
| this.directoryModel_.getCurrentDirEntry());
|
| @@ -2946,7 +2946,7 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
|
| * @private
|
| */
|
| FileManager.prototype.onCancel_ = function(event) {
|
| - chrome.fileBrowserPrivate.cancelDialog();
|
| + chrome.fileManagerPrivate.cancelDialog();
|
| window.close();
|
| };
|
|
|
| @@ -2962,7 +2962,7 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
|
| */
|
| FileManager.prototype.resolveSelectResults_ = function(fileUrls, callback) {
|
| if (this.isOnDrive()) {
|
| - chrome.fileBrowserPrivate.getDriveFiles(
|
| + chrome.fileManagerPrivate.getDriveFiles(
|
| fileUrls,
|
| function(localPaths) {
|
| callback(fileUrls);
|
| @@ -2984,11 +2984,11 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
|
| window.close();
|
| }
|
| if (selection.multiple) {
|
| - chrome.fileBrowserPrivate.selectFiles(
|
| + chrome.fileManagerPrivate.selectFiles(
|
| selection.urls, this.params_.shouldReturnLocalPath, callback);
|
| } else {
|
| var forOpening = (this.dialogType != DialogType.SELECT_SAVEAS_FILE);
|
| - chrome.fileBrowserPrivate.selectFile(
|
| + chrome.fileManagerPrivate.selectFile(
|
| selection.urls[0], selection.filterIndex, forOpening,
|
| this.params_.shouldReturnLocalPath, callback);
|
| }
|
| @@ -3051,7 +3051,7 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
|
| footer.setAttribute('progress', 'progress');
|
| this.cancelButton_.removeEventListener('click', this.onCancelBound_);
|
| this.cancelButton_.addEventListener('click', onCancel);
|
| - chrome.fileBrowserPrivate.onFileTransfersUpdated.addListener(
|
| + chrome.fileManagerPrivate.onFileTransfersUpdated.addListener(
|
| onFileTransfersUpdated);
|
| }.bind(this);
|
|
|
| @@ -3060,7 +3060,7 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
|
| footer.removeAttribute('progress');
|
| this.cancelButton_.removeEventListener('click', onCancel);
|
| this.cancelButton_.addEventListener('click', this.onCancelBound_);
|
| - chrome.fileBrowserPrivate.onFileTransfersUpdated.removeListener(
|
| + chrome.fileManagerPrivate.onFileTransfersUpdated.removeListener(
|
| onFileTransfersUpdated);
|
| }.bind(this);
|
|
|
| @@ -3068,7 +3068,7 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
|
| cancelled = true;
|
| // According to API cancel may fail, but there is no proper UI to reflect
|
| // this. So, we just silently assume that everything is cancelled.
|
| - chrome.fileBrowserPrivate.cancelFileTransfers(
|
| + chrome.fileManagerPrivate.cancelFileTransfers(
|
| selection.urls, function(response) {});
|
| cleanup();
|
| }.bind(this);
|
| @@ -3266,7 +3266,7 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
|
| // If checked, the sync is disabled.
|
| var nowCellularDisabled = this.syncButton.hasAttribute('checked');
|
| var changeInfo = {cellularDisabled: !nowCellularDisabled};
|
| - chrome.fileBrowserPrivate.setPreferences(changeInfo);
|
| + chrome.fileManagerPrivate.setPreferences(changeInfo);
|
| };
|
|
|
| /**
|
| @@ -3281,7 +3281,7 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
|
| */
|
| var changeInfo = {};
|
| changeInfo['hostedFilesDisabled'] = !nowHostedFilesDisabled;
|
| - chrome.fileBrowserPrivate.setPreferences(changeInfo);
|
| + chrome.fileManagerPrivate.setPreferences(changeInfo);
|
| };
|
|
|
| /**
|
| @@ -3426,7 +3426,7 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
|
| 'types': 'ALL',
|
| 'maxResults': 4
|
| };
|
| - chrome.fileBrowserPrivate.searchDriveMetadata(
|
| + chrome.fileManagerPrivate.searchDriveMetadata(
|
| searchParams,
|
| function(suggestions) {
|
| this.autocompleteSuggestionsBusy_ = false;
|
| @@ -3613,7 +3613,7 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
|
| return;
|
| }
|
|
|
| - chrome.fileBrowserPrivate.getPreferences(function(prefs) {
|
| + chrome.fileManagerPrivate.getPreferences(function(prefs) {
|
| this.preferences_ = prefs;
|
| callback(prefs);
|
| }.bind(this));
|
|
|