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

Unified Diff: ui/file_manager/file_manager/background/js/device_handler_unittest.js

Issue 901233003: Enable Cloud Import feature by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update device handler test to use new flag. Created 5 years, 10 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
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | ui/file_manager/file_manager/common/js/importer_common.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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: {
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | ui/file_manager/file_manager/common/js/importer_common.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698