| Index: ui/file_manager/file_manager/background/js/device_handler_unittest.js
|
| diff --git a/ui/file_manager/file_manager/background/js/device_handler_unittest.js b/ui/file_manager/file_manager/background/js/device_handler_unittest.js
|
| index 272d5fc4032c5a1d5778bec4e37efa3a4a32ff59..f1cba78959333f01d0d1acdab8dfe653ec82fe99 100644
|
| --- a/ui/file_manager/file_manager/background/js/device_handler_unittest.js
|
| +++ b/ui/file_manager/file_manager/background/js/device_handler_unittest.js
|
| @@ -84,8 +84,6 @@ function testRemovableMediaDeviceWithImportEnabled(callback) {
|
| '/DCIM/grandma.jpg'
|
| ]);
|
|
|
| - // "Enable" cloud backup, then make a device handler.
|
| - chrome.commandLinePrivate.cloudBackupEnabled = true;
|
| var resolver = new importer.Resolver();
|
|
|
| // Handle media device navigation requests.
|
| @@ -121,8 +119,6 @@ function testMtpMediaDeviceWithImportEnabled(callback) {
|
| '/dcim/grandpa.jpg'
|
| ]);
|
|
|
| - // "Enable" cloud backup, then make a device handler.
|
| - chrome.commandLinePrivate.cloudBackupEnabled = true;
|
| var resolver = new importer.Resolver();
|
|
|
| // Handle media device navigation requests.
|
| @@ -150,7 +146,7 @@ function testMtpMediaDeviceWithImportEnabled(callback) {
|
| }
|
|
|
| function testMediaDeviceWithImportDisabled(callback) {
|
| - chrome.commandLinePrivate.cloudBackupEnabled = false;
|
| + chrome.commandLinePrivate.cloudImportDisabled = true;
|
|
|
| chrome.fileManagerPrivate.onMountCompleted.dispatch({
|
| eventType: 'mount',
|
| @@ -566,11 +562,11 @@ function setupChromeApis() {
|
| chrome = {
|
| commandLinePrivate: {
|
| hasSwitch: function(switchName, callback) {
|
| - if (switchName === 'enable-cloud-backup') {
|
| - callback(chrome.commandLinePrivate.cloudBackupEnabled);
|
| + if (switchName === 'disable-cloud-import') {
|
| + callback(chrome.commandLinePrivate.cloudImportDisabled);
|
| }
|
| },
|
| - cloudBackupEnabled: false
|
| + cloudImportDisabled: false
|
| },
|
| fileManagerPrivate: {
|
| onDeviceChanged: {
|
|
|