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

Unified Diff: chrome/test/data/extensions/api_test/file_browser/multi_profile_copy/test.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: chrome/test/data/extensions/api_test/file_browser/multi_profile_copy/test.js
diff --git a/chrome/test/data/extensions/api_test/file_browser/multi_profile_copy/test.js b/chrome/test/data/extensions/api_test/file_browser/multi_profile_copy/test.js
index 1dee708c2e557eb016d812f1c9f28929a5797064..358d437dd41f9d6ba40b81aaffd9d218839c0786 100644
--- a/chrome/test/data/extensions/api_test/file_browser/multi_profile_copy/test.js
+++ b/chrome/test/data/extensions/api_test/file_browser/multi_profile_copy/test.js
@@ -19,7 +19,7 @@ function fileErrorCallback(callback, message) {
}
/**
- * Copies an entry using chrome.fileBrowserPrivate.startCopy().
+ * Copies an entry using chrome.fileManagerPrivate.startCopy().
*
* @param {Entry} fromRoot Root entry of the copy source file system.
* @param {string} fromPath Relative path from fromRoot of the source entry.
@@ -40,17 +40,17 @@ function fileCopy(fromRoot, fromPath, toRoot, toPath, newName,
return;
}
if (status.type == 'error') {
- chrome.fileBrowserPrivate.onCopyProgress.removeListener(onProgress);
+ chrome.fileManagerPrivate.onCopyProgress.removeListener(onProgress);
errorCallback('Copy failed.');
return;
}
if (status.type == 'success') {
- chrome.fileBrowserPrivate.onCopyProgress.removeListener(onProgress);
+ chrome.fileManagerPrivate.onCopyProgress.removeListener(onProgress);
successCallback();
}
};
- chrome.fileBrowserPrivate.onCopyProgress.addListener(onProgress);
- chrome.fileBrowserPrivate.startCopy(
+ chrome.fileManagerPrivate.onCopyProgress.addListener(onProgress);
+ chrome.fileManagerPrivate.startCopy(
from.toURL(), to.toURL(), newName, function(startCopyId) {
if (chrome.runtime.lastError) {
errorCallback('Error starting to copy.');
@@ -116,7 +116,7 @@ function collectTests(firstRoot, secondRoot) {
* to run will be null.
*/
function initTests(callback) {
- chrome.fileBrowserPrivate.getVolumeMetadataList(function(volumeMetadataList) {
+ chrome.fileManagerPrivate.getVolumeMetadataList(function(volumeMetadataList) {
var driveVolumes = volumeMetadataList.filter(function(volume) {
return volume.volumeType == 'drive';
});
@@ -126,7 +126,7 @@ function initTests(callback) {
return;
}
- chrome.fileBrowserPrivate.requestFileSystem(
+ chrome.fileManagerPrivate.requestFileSystem(
driveVolumes[0].volumeId,
function(primaryFileSystem) {
if (!primaryFileSystem) {

Powered by Google App Engine
This is Rietveld 408576698