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

Unified Diff: ui/file_manager/file_manager/common/js/importer_common.js

Issue 901233003: Enable Cloud Import feature by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update histogram value. 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
« chromeos/chromeos_switches.cc ('K') | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/common/js/importer_common.js
diff --git a/ui/file_manager/file_manager/common/js/importer_common.js b/ui/file_manager/file_manager/common/js/importer_common.js
index 8142d07bba0fa47958e2ee805e02e3304383bfa6..fec6d9dbc4dc2a2a31e92717a510e31d099a0f77 100644
--- a/ui/file_manager/file_manager/common/js/importer_common.js
+++ b/ui/file_manager/file_manager/common/js/importer_common.js
@@ -125,10 +125,10 @@ importer.importEnabled = function() {
return new Promise(
function(resolve, reject) {
chrome.commandLinePrivate.hasSwitch(
- 'enable-cloud-backup',
- /** @param {boolean} enabled */
- function(enabled) {
- resolve(enabled);
+ 'disable-cloud-import',
+ /** @param {boolean} disabled */
+ function(disabled) {
+ resolve(!disabled);
});
});
};
« chromeos/chromeos_switches.cc ('K') | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698