Merge pull request #650 from ian-moone/rm-optimize-for-size

Remove "optimize_for_size" redundancy
This commit is contained in:
Eloston
2018-12-30 19:01:11 +00:00
committed by GitHub
9 changed files with 12 additions and 29 deletions
-1
View File
@@ -28,7 +28,6 @@ debian_buster/fixes/mojo.patch
debian_buster/fixes/sizet.patch
debian_buster/fixes/alignof.patch
debian_buster/fixes/polymer.patch
debian_buster/fixes/optimize.patch
debian_buster/fixes/ps-print.patch
debian_buster/fixes/as-needed.patch
debian_buster/fixes/constexpr.patch
@@ -1,5 +1,4 @@
custom_toolchain="//build/toolchain/linux/unbundle:default"
host_toolchain="//build/toolchain/linux/unbundle:default"
linux_use_bundled_binutils=false
optimize_for_size=false
use_kerberos=false
-1
View File
@@ -5,7 +5,6 @@ goma_dir=""
host_toolchain="//build/toolchain/linux/unbundle:default"
link_pulseaudio=true
linux_use_bundled_binutils=false
optimize_for_size=false
use_allocator="none"
use_cups=true
use_custom_libcxx=false
+1 -1
View File
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -399,7 +399,7 @@ config("compiler") {
@@ -397,7 +397,7 @@ config("compiler") {
if (!using_sanitizer && !is_safestack) {
ldflags += [
"-Wl,-z,defs",
@@ -1,14 +0,0 @@
description: add missing variable declaration
author: Michael Gilbert <mgilbert@debian.org>
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -76,6 +76,8 @@ declare_args() {
msvs_xtree_patched = false
}
+ optimize_for_size = true
+
# Enable fatal linker warnings. Building Chromium with certain versions
# of binutils can cause linker warning.
# See: https://bugs.chromium.org/p/chromium/issues/detail?id=457359
@@ -8,7 +8,7 @@
--- a/components/url_formatter/url_fixer.cc
+++ b/components/url_formatter/url_fixer.cc
@@ -436,9 +436,9 @@
@@ -436,9 +436,9 @@ std::string SegmentURLInternal(std::stri
(*text)[semicolon] = ';';
}
if (!found_scheme) {
@@ -19,10 +19,10 @@
+ scheme = url::kHttpsScheme;
}
}
--- a/components/omnibox/browser/autocomplete_input.cc
+++ b/components/omnibox/browser/autocomplete_input.cc
@@ -233,7 +233,7 @@
@@ -233,7 +233,7 @@ metrics::OmniboxInputType AutocompleteIn
// We don't know about this scheme. It might be that the user typed a
// URL of the form "username:password@foo.com".
const base::string16 http_scheme_prefix =
@@ -31,7 +31,7 @@
url::kStandardSchemeSeparator);
url::Parsed http_parts;
base::string16 http_scheme;
@@ -241,7 +241,7 @@
@@ -241,7 +241,7 @@ metrics::OmniboxInputType AutocompleteIn
metrics::OmniboxInputType http_type =
Parse(http_scheme_prefix + text, desired_tld, scheme_classifier,
&http_parts, &http_scheme, &http_canonicalized_url);
@@ -40,7 +40,7 @@
base::UTF16ToUTF8(http_scheme));
if ((http_type == metrics::OmniboxInputType::URL) &&
@@ -570,7 +570,7 @@
@@ -570,7 +570,7 @@ bool AutocompleteInput::HasHTTPScheme(co
} else if (url::FindAndCompareScheme(utf8_input, kViewSourceScheme, &scheme)) {
utf8_input.erase(0, scheme.end() + 1);
}
@@ -51,7 +51,7 @@
void AutocompleteInput::UpdateText(const base::string16& text,
--- a/components/omnibox/browser/autocomplete_provider.cc
+++ b/components/omnibox/browser/autocomplete_provider.cc
@@ -188,11 +188,11 @@
@@ -188,11 +188,11 @@ size_t AutocompleteProvider::TrimHttpPre
if (!AutocompleteInput::HasHTTPScheme(*url))
return 0;
size_t scheme_pos =
@@ -67,7 +67,7 @@
++prefix_end;
--- a/chrome/browser/resources/md_bookmarks/edit_dialog.js
+++ b/chrome/browser/resources/md_bookmarks/edit_dialog.js
@@ -93,7 +93,7 @@
@@ -93,7 +93,7 @@ Polymer({
/**
* Validates the value of the URL field, returning true if it is a valid URL.
@@ -76,7 +76,7 @@
* @return {boolean}
* @private
*/
@@ -104,7 +104,7 @@
@@ -104,7 +104,7 @@ Polymer({
if (urlInput.validate())
return true;
@@ -2,7 +2,7 @@
--- a/chrome/common/safe_browsing/BUILD.gn
+++ b/chrome/common/safe_browsing/BUILD.gn
@@ -73,11 +73,11 @@
@@ -73,11 +73,11 @@ source_set("safe_browsing") {
":file_type_policies",
]
@@ -2,7 +2,7 @@
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -1499,7 +1499,7 @@ config("default_warnings") {
@@ -1497,7 +1497,7 @@ config("default_warnings") {
# recognize.
cflags += [
# TODO(thakis): https://crbug.com/753973
@@ -3,7 +3,7 @@
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -730,14 +730,6 @@ config("compiler") {
@@ -728,14 +728,6 @@ config("compiler") {
ldflags += [ "-Wl,--no-rosegment" ]
}