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

Unified Diff: net/base/escape_icu.cc

Issue 7978039: net: Put more functions from escape.h into net namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/escape_icu.cc
diff --git a/net/base/escape_icu.cc b/net/base/escape_icu.cc
index bae93074cb260b8df68613f800a22a4b5d38f0c9..2962fbc99f4f07aaed8a734aaf9372562e0a4905 100644
--- a/net/base/escape_icu.cc
+++ b/net/base/escape_icu.cc
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <algorithm>
-
#include "net/base/escape.h"
#include "base/i18n/icu_string_conversions.h"
@@ -11,8 +9,12 @@
// This file exists to avoid having escape.cc depend on ICU.
-bool EscapeQueryParamValue(const string16& text, const char* codepage,
- bool use_plus, string16* escaped) {
+namespace net {
+
+bool EscapeQueryParamValue(const string16& text,
+ const char* codepage,
+ bool use_plus,
+ string16* escaped) {
// TODO(brettw) bug 1201094: this function should be removed, this "SKIP"
// behavior is wrong when the character can't be encoded properly.
std::string encoded;
@@ -23,3 +25,5 @@ bool EscapeQueryParamValue(const string16& text, const char* codepage,
escaped->assign(UTF8ToUTF16(EscapeQueryParamValue(encoded, use_plus)));
return true;
}
+
+} // namespace net
« no previous file with comments | « net/base/escape.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698