Skip to content

Commit a62543b

Browse files
committedApr 26, 2022
Update Chromium patch (101.0.4951.41)
Patch had to be changed because GURL::Replacements changed in: https://chromium.googlesource.com/chromium/src/+/4a8f7a9b0946380c7a497c7d1306279f25b6a74a
1 parent 940124e commit a62543b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎chrome/https-by-default.patch

+3-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ diff --git a/components/omnibox/browser/autocomplete_input.cc b/components/omnib
2424
index 43fc0dc783d8..1f7e5ce9dee1 100644
2525
--- a/components/omnibox/browser/autocomplete_input.cc
2626
+++ b/components/omnibox/browser/autocomplete_input.cc
27-
@@ -285,6 +285,18 @@ metrics::OmniboxInputType AutocompleteInput::Parse(
27+
@@ -285,6 +285,17 @@ metrics::OmniboxInputType AutocompleteInput::Parse(
2828
// between an HTTP URL and a query, or the scheme is HTTP or HTTPS, in which
2929
// case we should reject invalid formulations.
3030

@@ -34,9 +34,8 @@ index 43fc0dc783d8..1f7e5ce9dee1 100644
3434
+ // but we want to default to https instead.
3535
+ if (scheme)
3636
+ *scheme = base::ASCIIToUTF16(url::kHttpsScheme);
37-
+ url::Replacements<char> replacements;
38-
+ replacements.SetScheme(url::kHttpsScheme,
39-
+ url::Component(0, strlen(url::kHttpsScheme)));
37+
+ GURL::Replacements replacements;
38+
+ replacements.SetSchemeStr(url::kHttpsScheme);
4039
+ *canonicalized_url = canonicalized_url->ReplaceComponents(replacements);
4140
+ }
4241
+

0 commit comments

Comments
 (0)
Please sign in to comment.