Commit 02da96a0 authored by Tatsuhisa Yamaguchi's avatar Tatsuhisa Yamaguchi Committed by Commit Bot

Enable Zip Archiver for unpacking by default.

Zip Archiver is a new component extension that handles zipping and
unzipping. After this change, Files app. will use Zip Archiver for
unzipping zip files. It will also allow to unzip a zip file in the
Google Drive volume or other non-local places.

Bug: 783200
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I3851c8c801d58a7573632e664b4fc2fca92acb83
Reviewed-on: https://chromium-review.googlesource.com/758696Reviewed-by: default avatarNaoki Fukino <fukino@chromium.org>
Commit-Queue: Tatsuhisa Yamaguchi <yamaguchi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#515487}
parent 3c8dd144
...@@ -624,9 +624,9 @@ bool IsVoiceInteractionEnabled() { ...@@ -624,9 +624,9 @@ bool IsVoiceInteractionEnabled() {
} }
bool IsZipArchiverUnpackerEnabled() { bool IsZipArchiverUnpackerEnabled() {
// Disabled by default. // Enabled by default.
return base::CommandLine::ForCurrentProcess()->HasSwitch( return !base::CommandLine::ForCurrentProcess()->HasSwitch(
kEnableZipArchiverUnpacker); kDisableZipArchiverUnpacker);
} }
} // namespace switches } // namespace switches
......
...@@ -182,10 +182,10 @@ FileTasks.create = function( ...@@ -182,10 +182,10 @@ FileTasks.create = function(
if (!FileTasks.zipArchiverUnpackerEnabledPromise_) { if (!FileTasks.zipArchiverUnpackerEnabledPromise_) {
FileTasks.zipArchiverUnpackerEnabledPromise_ = FileTasks.zipArchiverUnpackerEnabledPromise_ =
new Promise(function(resolve, reject) { new Promise(function(resolve, reject) {
// Disabled by default. // Enabled by default.
chrome.commandLinePrivate.hasSwitch( chrome.commandLinePrivate.hasSwitch(
'enable-zip-archiver-unpacker', function(enabled) { 'disable-zip-archiver-unpacker', function(disabled) {
resolve(enabled); resolve(!disabled);
}); });
}); });
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment