Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2030)

Unified Diff: chrome/browser/search/search.cc

Issue 2140383003: c/b/search/search.h|cc cleanups (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/search/search.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/search.cc
diff --git a/chrome/browser/search/search.cc b/chrome/browser/search/search.cc
index c2ac4fe38940a8bc08f1ca941b0836a8c5823db4..376764cb89e32ca522cfcd2ee6a593950c1b9e71 100644
--- a/chrome/browser/search/search.cc
+++ b/chrome/browser/search/search.cc
@@ -507,8 +507,6 @@ GURL GetEffectiveURLForInstant(const GURL& url, Profile* profile) {
if (url.SchemeIs(chrome::kChromeSearchScheme))
return url;
- GURL effective_url(url);
-
// Replace the scheme with "chrome-search:", and clear the port, since
// chrome-search is a scheme without port.
url::Replacements<char> replacements;
@@ -527,8 +525,7 @@ GURL GetEffectiveURLForInstant(const GURL& url, Profile* profile) {
url::Component(0, remote_ntp_host.length()));
}
- effective_url = effective_url.ReplaceComponents(replacements);
- return effective_url;
+ return url.ReplaceComponents(replacements);
}
bool HandleNewTabURLRewrite(GURL* url,
« no previous file with comments | « chrome/browser/search/search.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698