Commit 3eed998d authored by Julian Watson's avatar Julian Watson Committed by Commit Bot

crostini: export crostini image files as .tini instead of .tar.gz

BUG=972848

Change-Id: I1965cbbc2b57db143e504a2bd8a233e6f7063248
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1724902Reviewed-by: default avatarJoel Hockey <joelhockey@chromium.org>
Commit-Queue: Julian Watson <juwa@google.com>
Cr-Commit-Position: refs/heads/master@{#683006}
parent d016df33
...@@ -103,7 +103,7 @@ void CrostiniExportImport::OpenFileDialog(ExportImportType type, ...@@ -103,7 +103,7 @@ void CrostiniExportImport::OpenFileDialog(ExportImportType type,
ui::SelectFileDialog::FileTypeInfo file_types; ui::SelectFileDialog::FileTypeInfo file_types;
file_types.allowed_paths = file_types.allowed_paths =
ui::SelectFileDialog::FileTypeInfo::NATIVE_OR_DRIVE_PATH; ui::SelectFileDialog::FileTypeInfo::NATIVE_OR_DRIVE_PATH;
file_types.extensions = {{"tar.gz", "tgz"}}; file_types.extensions = {{"tini", "tar.gz", "tgz"}};
switch (type) { switch (type) {
case ExportImportType::EXPORT: case ExportImportType::EXPORT:
...@@ -113,7 +113,7 @@ void CrostiniExportImport::OpenFileDialog(ExportImportType type, ...@@ -113,7 +113,7 @@ void CrostiniExportImport::OpenFileDialog(ExportImportType type,
base::Time::Now().LocalExplode(&exploded); base::Time::Now().LocalExplode(&exploded);
default_path = default_path =
pref_service->GetFilePath(prefs::kDownloadDefaultDirectory) pref_service->GetFilePath(prefs::kDownloadDefaultDirectory)
.Append(base::StringPrintf("chromeos-linux-%04d-%02d-%02d.tar.gz", .Append(base::StringPrintf("chromeos-linux-%04d-%02d-%02d.tini",
exploded.year, exploded.month, exploded.year, exploded.month,
exploded.day_of_month)); exploded.day_of_month));
break; break;
......
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