Reformat all gn files in /base, /build, /chrome/, /ui
`gn format` recently changed its formatting behavior
for deps, source, and a few other elements when they
are assigned (with =) single-element lists to be consistent
with the formatting of updates (with +=) with single-element.
Now that we've rolled in a GN binary with the change,
reformat all files so that people don't get presubmit
warnings due to this.
This CL was uploaded by me.
Bug: 1041419
Change-Id: I38ec77c3b62ca279286533ab1503f347b79a567e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2005628
Commit-Queue: Nico Weber <[email protected]>
Commit-Queue: Lei Zhang <[email protected]>
Auto-Submit: Nico Weber <[email protected]>
Reviewed-by: Lei Zhang <[email protected]>
Cr-Commit-Position: refs/heads/master@{#732629}
diff --git a/chrome/installer/linux/BUILD.gn b/chrome/installer/linux/BUILD.gn
index 46eaeb4..7c2c4ae 100644
--- a/chrome/installer/linux/BUILD.gn
+++ b/chrome/installer/linux/BUILD.gn
@@ -67,9 +67,7 @@
]
action_foreach("calculate_deb_dependencies") {
- deps = [
- ":installer_deps",
- ]
+ deps = [ ":installer_deps" ]
script = "debian/calculate_package_deps.py"
sources = packaging_files_binaries
inputs = [
@@ -78,9 +76,7 @@
"debian/package_version_interval.py",
"//third_party/dpkg-shlibdeps/dpkg-shlibdeps.pl",
]
- outputs = [
- "$root_out_dir/deb_{{source_name_part}}.deps",
- ]
+ outputs = [ "$root_out_dir/deb_{{source_name_part}}.deps" ]
args = [
"{{source}}",
rebase_path(sysroot, root_build_dir),
@@ -93,9 +89,7 @@
}
action("merge_deb_dependencies") {
- deps = [
- ":calculate_deb_dependencies",
- ]
+ deps = [ ":calculate_deb_dependencies" ]
script = "debian/merge_package_versions.py"
additional_deps = "debian/additional_deps"
inputs = [
@@ -103,9 +97,7 @@
"debian/deb_version.py",
"debian/package_version_interval.py",
]
- outputs = [
- "$root_out_dir/deb_common.deps",
- ]
+ outputs = [ "$root_out_dir/deb_common.deps" ]
args = [
"deb_common.deps",
rebase_path(additional_deps, root_build_dir),
@@ -115,17 +107,11 @@
}
action_foreach("calculate_rpm_dependencies") {
- deps = [
- ":installer_deps",
- ]
+ deps = [ ":installer_deps" ]
script = "rpm/calculate_package_deps.py"
sources = packaging_files_binaries
- inputs = [
- "rpm/dist_package_provides.json",
- ]
- outputs = [
- "$root_out_dir/rpm_{{source_name_part}}.deps",
- ]
+ inputs = [ "rpm/dist_package_provides.json" ]
+ outputs = [ "$root_out_dir/rpm_{{source_name_part}}.deps" ]
args = [
"{{source}}",
"rpm_{{source_name_part}}.deps",
@@ -137,17 +123,11 @@
}
action("merge_rpm_dependencies") {
- deps = [
- ":calculate_rpm_dependencies",
- ]
+ deps = [ ":calculate_rpm_dependencies" ]
script = "rpm/merge_package_deps.py"
additional_deps = "rpm/additional_deps"
- inputs = [
- additional_deps,
- ]
- outputs = [
- "$root_out_dir/rpm_common.deps",
- ]
+ inputs = [ additional_deps ]
+ outputs = [ "$root_out_dir/rpm_common.deps" ]
args = [
"rpm_common.deps",
rebase_path(additional_deps, root_build_dir),
@@ -160,9 +140,7 @@
prog_name = "$root_out_dir/chrome"
debug_file = prog_name + ".debug"
stripped_file = prog_name + ".stripped"
- deps = [
- "//chrome",
- ]
+ deps = [ "//chrome" ]
script = "//build/gn_run_binary.py"
sources = [
"//buildtools/third_party/eu-strip/bin/eu-strip",
@@ -253,9 +231,7 @@
sources += [ "//buildtools/third_party/eu-strip/bin/eu-strip" ]
- outputs = [
- "$root_out_dir/installer/common/{{source_file_part}}",
- ]
+ outputs = [ "$root_out_dir/installer/common/{{source_file_part}}" ]
}
copy("deb_packaging_files") {
@@ -270,9 +246,7 @@
"debian/postrm",
"debian/prerm",
]
- outputs = [
- "$root_out_dir/installer/debian/{{source_file_part}}",
- ]
+ outputs = [ "$root_out_dir/installer/debian/{{source_file_part}}" ]
}
copy("theme_files") {
@@ -308,9 +282,7 @@
"$branding_dir_100/product_logo_32_dev.png",
]
}
- outputs = [
- "$root_out_dir/installer/theme/{{source_file_part}}",
- ]
+ outputs = [ "$root_out_dir/installer/theme/{{source_file_part}}" ]
}
if (!is_chromeos) {
@@ -320,9 +292,7 @@
"rpm/build.sh",
"rpm/chrome.spec.template",
]
- outputs = [
- "$root_out_dir/installer/rpm/{{source_file_part}}",
- ]
+ outputs = [ "$root_out_dir/installer/rpm/{{source_file_part}}" ]
}
}
@@ -416,9 +386,7 @@
} else {
package = "chromium-browser"
}
- outputs = [
- "$root_out_dir/${package}-${channel}_${chrome_version_full}-1_${deb_arch}.deb",
- ]
+ outputs = [ "$root_out_dir/${package}-${channel}_${chrome_version_full}-1_${deb_arch}.deb" ]
args = [
rebase_path("$root_out_dir/installer/debian/build.sh", root_build_dir),
@@ -474,9 +442,7 @@
} else {
package = "chromium-browser"
}
- outputs = [
- "$root_out_dir/${package}-${channel}-${chrome_version_full}-1.${rpm_arch}.rpm",
- ]
+ outputs = [ "$root_out_dir/${package}-${channel}-${chrome_version_full}-1.${rpm_arch}.rpm" ]
args = [
rebase_path("$root_out_dir/installer/rpm/build.sh", root_build_dir),
@@ -504,9 +470,7 @@
}
group(target_name) {
- deps = [
- ":$deb_target_name",
- ]
+ deps = [ ":$deb_target_name" ]
if (!is_chromeos) {
deps += [ ":$rpm_target_name" ]
}