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

Unified Diff: net/base/escape.cc

Issue 10444117: Escape search terms correctly in the path portion of a custom search engine. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | « net/base/escape.h ('k') | net/base/escape_icu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/escape.cc
===================================================================
--- net/base/escape.cc (revision 139570)
+++ net/base/escape.cc (working copy)
@@ -247,6 +247,10 @@
} // namespace
+std::string EscapeQueryParamValue(const std::string& text, bool use_plus) {
+ return Escape(text, kQueryCharmap, use_plus);
+}
+
std::string EscapePath(const std::string& path) {
return Escape(path, kPathCharmap, false);
}
@@ -354,16 +358,6 @@
return text;
}
-std::string EscapeQueryParamValue(const std::string& text, bool use_plus) {
- return Escape(text, kQueryCharmap, use_plus);
-}
-
-// Convert the string to a sequence of bytes and then % escape anything
-// except alphanumerics and !'()*-._~
-string16 EscapeQueryParamValueUTF8(const string16& text, bool use_plus) {
- return UTF8ToUTF16(Escape(UTF16ToUTF8(text), kQueryCharmap, use_plus));
-}
-
namespace internal {
AdjustEncodingOffset::AdjustEncodingOffset(const Adjustments& adjustments)
« no previous file with comments | « net/base/escape.h ('k') | net/base/escape_icu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698