Chromium Code Reviews| Index: chrome/browser/search/search.cc |
| diff --git a/chrome/browser/search/search.cc b/chrome/browser/search/search.cc |
| index 645fecb9a52e535b344cc9554331c891695ddc61..0e6a7c608c9936226a9d049c25a684153f10f6a8 100644 |
| --- a/chrome/browser/search/search.cc |
| +++ b/chrome/browser/search/search.cc |
| @@ -493,6 +493,7 @@ GURL GetEffectiveURLForInstant(const GURL& url, Profile* profile) { |
| // Replace the scheme with "chrome-search:". |
| url::Replacements<char> replacements; |
| std::string search_scheme(chrome::kChromeSearchScheme); |
| + replacements.ClearPort(); |
|
Charlie Reis
2016/04/22 18:11:09
I'll defer to Samarth or someone familiar with the
ncarter (slow)
2016/04/22 20:00:34
We're erasing the underlying scheme anyway (which
Charlie Reis
2016/04/22 20:20:46
That's a good point about losing the scheme. That
|
| replacements.SetScheme(search_scheme.data(), |
| url::Component(0, search_scheme.length())); |