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

Unified Diff: components/search_engines/template_url.cc

Issue 889463003: GURL::Replacements methods accept a StringPiece instead of std::string&. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase (fixed some merge conflicts). Created 5 years, 10 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
Index: components/search_engines/template_url.cc
diff --git a/components/search_engines/template_url.cc b/components/search_engines/template_url.cc
index f960485238ed9a1855e7a1eb12849187c2c6ee46..a9b6c9b6d7d521de9cd8bf928d73090505dc5d7b 100644
--- a/components/search_engines/template_url.cc
+++ b/components/search_engines/template_url.cc
@@ -28,6 +28,7 @@
#include "net/base/escape.h"
#include "net/base/mime_util.h"
#include "net/base/net_util.h"
+#include "url/gurl.h"
namespace {
@@ -1359,7 +1360,7 @@ bool TemplateURL::ReplaceSearchTermsInURL(
std::string new_params(old_params, 0, search_terms_position.begin);
new_params += base::UTF16ToUTF8(search_terms_args.search_terms);
new_params += old_params.substr(search_terms_position.end());
- url::StdStringReplacements<std::string> replacements;
+ GURL::Replacements replacements;
if (search_term_component == url::Parsed::REF)
replacements.SetRefStr(new_params);
else

Powered by Google App Engine
This is Rietveld 408576698