File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ diff --git a/components/omnibox/browser/autocomplete_input.cc b/components/omnib
24
24
index 43fc0dc783d8..1f7e5ce9dee1 100644
25
25
--- a/components/omnibox/browser/autocomplete_input.cc
26
26
+++ 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(
28
28
// between an HTTP URL and a query, or the scheme is HTTP or HTTPS, in which
29
29
// case we should reject invalid formulations.
30
30
@@ -34,9 +34,8 @@ index 43fc0dc783d8..1f7e5ce9dee1 100644
34
34
+ // but we want to default to https instead.
35
35
+ if (scheme)
36
36
+ *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);
40
39
+ *canonicalized_url = canonicalized_url->ReplaceComponents(replacements);
41
40
+ }
42
41
+
You can’t perform that action at this time.
0 commit comments