| Index: ui/file_manager/image_loader/image_loader.js
|
| diff --git a/ui/file_manager/image_loader/image_loader.js b/ui/file_manager/image_loader/image_loader.js
|
| index 3f31c70e3bb7a6508c634eac48ac8fa6d4bafb24..a9019da2f7e56c4c563767f2aed06e8516e6cb93 100644
|
| --- a/ui/file_manager/image_loader/image_loader.js
|
| +++ b/ui/file_manager/image_loader/image_loader.js
|
| @@ -25,10 +25,10 @@ function ImageLoader() {
|
|
|
| // Grant permissions to all volumes, initialize the cache and then start the
|
| // worker.
|
| - chrome.fileBrowserPrivate.getVolumeMetadataList(function(volumeMetadataList) {
|
| + chrome.fileManagerPrivate.getVolumeMetadataList(function(volumeMetadataList) {
|
| var initPromises = volumeMetadataList.map(function(volumeMetadata) {
|
| var requestPromise = new Promise(function(callback) {
|
| - chrome.fileBrowserPrivate.requestFileSystem(
|
| + chrome.fileManagerPrivate.requestFileSystem(
|
| volumeMetadata.volumeId,
|
| callback);
|
| });
|
| @@ -40,10 +40,10 @@ function ImageLoader() {
|
| Promise.all(initPromises).then(this.worker_.start.bind(this.worker_));
|
|
|
| // Listen for mount events, and grant permissions to volumes being mounted.
|
| - chrome.fileBrowserPrivate.onMountCompleted.addListener(
|
| + chrome.fileManagerPrivate.onMountCompleted.addListener(
|
| function(event) {
|
| if (event.eventType == 'mount' && event.status == 'success') {
|
| - chrome.fileBrowserPrivate.requestFileSystem(
|
| + chrome.fileManagerPrivate.requestFileSystem(
|
| event.volumeMetadata.volumeId, function() {});
|
| }
|
| });
|
|
|