Commit d77e027c authored by Nico Weber's avatar Nico Weber Committed by Commit Bot

Reformat all gn files in /components.

`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 git cl split.

R=jochen@chromium.org

Bug: 1041419
Change-Id: I3d2049d684bba4a4a5bb99837af05479793564b9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1997704
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: default avatarJochen Eisinger <jochen@chromium.org>
Commit-Queue: Jochen Eisinger <jochen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#732483}
parent 1f0b7c2a
...@@ -19,9 +19,7 @@ group("resources") { ...@@ -19,9 +19,7 @@ group("resources") {
grit("components_resources") { grit("components_resources") {
source = "components_resources.grd" source = "components_resources.grd"
inputs = [ inputs = [ about_credits_file ]
about_credits_file,
]
outputs = [ outputs = [
"grit/components_resources.h", "grit/components_resources.h",
...@@ -40,9 +38,7 @@ grit("components_resources") { ...@@ -40,9 +38,7 @@ grit("components_resources") {
"enable_print_preview=$enable_print_preview", "enable_print_preview=$enable_print_preview",
] ]
deps = [ deps = [ ":about_credits" ]
":about_credits",
]
} }
grit("dev_ui_components_resources") { grit("dev_ui_components_resources") {
...@@ -78,9 +74,7 @@ action("about_credits") { ...@@ -78,9 +74,7 @@ action("about_credits") {
"../about_ui/resources/about_credits_entry.tmpl", "../about_ui/resources/about_credits_entry.tmpl",
] ]
outputs = [ outputs = [ about_credits_file ]
about_credits_file,
]
args = [ args = [
"--target-os=$target_os", "--target-os=$target_os",
......
...@@ -32,9 +32,7 @@ grit("components_strings") { ...@@ -32,9 +32,7 @@ grit("components_strings") {
"enable_print_preview=$enable_print_preview", "enable_print_preview=$enable_print_preview",
] ]
outputs = [ outputs = [ "grit/components_strings.h" ]
"grit/components_strings.h",
]
foreach(locale, locales_with_fake_bidi) { foreach(locale, locales_with_fake_bidi) {
outputs += [ "components_strings_$locale.pak" ] outputs += [ "components_strings_$locale.pak" ]
} }
...@@ -49,17 +47,13 @@ if (is_android) { ...@@ -49,17 +47,13 @@ if (is_android) {
grit_output_dir = "$root_gen_dir/components/strings/java/res" grit_output_dir = "$root_gen_dir/components/strings/java/res"
generated_files = generated_files =
rebase_path(android_components_strings_java_resources, "java/res", ".") rebase_path(android_components_strings_java_resources, "java/res", ".")
deps = [ deps = [ ":components_strings" ]
":components_strings",
]
} }
} }
grit("components_chromium_strings") { grit("components_chromium_strings") {
source = "../components_chromium_strings.grd" source = "../components_chromium_strings.grd"
outputs = [ outputs = [ "grit/components_chromium_strings.h" ]
"grit/components_chromium_strings.h",
]
foreach(locale, locales_with_fake_bidi) { foreach(locale, locales_with_fake_bidi) {
outputs += [ "components_chromium_strings_$locale.pak" ] outputs += [ "components_chromium_strings_$locale.pak" ]
} }
...@@ -67,9 +61,7 @@ grit("components_chromium_strings") { ...@@ -67,9 +61,7 @@ grit("components_chromium_strings") {
grit("components_google_chrome_strings") { grit("components_google_chrome_strings") {
source = "../components_google_chrome_strings.grd" source = "../components_google_chrome_strings.grd"
outputs = [ outputs = [ "grit/components_google_chrome_strings.h" ]
"grit/components_google_chrome_strings.h",
]
foreach(locale, locales_with_fake_bidi) { foreach(locale, locales_with_fake_bidi) {
outputs += [ "components_google_chrome_strings_$locale.pak" ] outputs += [ "components_google_chrome_strings_$locale.pak" ]
} }
...@@ -85,9 +77,7 @@ if (is_android) { ...@@ -85,9 +77,7 @@ if (is_android) {
grit("components_locale_settings") { grit("components_locale_settings") {
source = "../components_locale_settings.grd" source = "../components_locale_settings.grd"
outputs = [ outputs = [ "grit/components_locale_settings.h" ]
"grit/components_locale_settings.h",
]
foreach(locale, locales_with_fake_bidi) { foreach(locale, locales_with_fake_bidi) {
outputs += [ "components_locale_settings_$locale.pak" ] outputs += [ "components_locale_settings_$locale.pak" ]
} }
...@@ -104,8 +94,6 @@ if (is_android) { ...@@ -104,8 +94,6 @@ if (is_android) {
rebase_path(android_components_locale_settings_java_resources, rebase_path(android_components_locale_settings_java_resources,
"java/res", "java/res",
".") ".")
deps = [ deps = [ ":components_locale_settings" ]
":components_locale_settings",
]
} }
} }
...@@ -23,9 +23,7 @@ source_set("test_support") { ...@@ -23,9 +23,7 @@ source_set("test_support") {
"//ui/resources:ui_test_pak", "//ui/resources:ui_test_pak",
] ]
public_deps = [ public_deps = [ "//base/test:test_support" ]
"//base/test:test_support",
]
if (is_ios) { if (is_ios) {
sources += [ sources += [
...@@ -49,11 +47,7 @@ source_set("test_support") { ...@@ -49,11 +47,7 @@ source_set("test_support") {
source_set("run_all_unittests") { source_set("run_all_unittests") {
testonly = true testonly = true
sources = [ sources = [ "run_all_unittests.cc" ]
"run_all_unittests.cc",
]
deps = [ deps = [ ":test_support" ]
":test_support",
]
} }
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