summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-02 02:01:48 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-02 02:01:48 +0000
commite8478ae4ef8bd1dbb83cd46e8af060d5331ba2df (patch)
treef1b969244d1ffa41c32242429e9218ccd4955fb8 /net/http
parentee940fc4997e1e0369f8e9fd1cce24311e1945a0 (diff)
downloadchromium_src-e8478ae4ef8bd1dbb83cd46e8af060d5331ba2df.zip
chromium_src-e8478ae4ef8bd1dbb83cd46e8af060d5331ba2df.tar.gz
chromium_src-e8478ae4ef8bd1dbb83cd46e8af060d5331ba2df.tar.bz2
base: Move SplitStringUsingSubstr functions from string_util.h to string_split.h
BUG=None TEST=trybots Review URL: http://codereview.chromium.org/3284005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58300 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_request_headers.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/http/http_request_headers.cc b/net/http/http_request_headers.cc
index c534967..9f2eb90 100644
--- a/net/http/http_request_headers.cc
+++ b/net/http/http_request_headers.cc
@@ -5,6 +5,7 @@
#include "net/http/http_request_headers.h"
#include "base/logging.h"
+#include "base/string_split.h"
#include "base/string_util.h"
#include "net/http/http_util.h"
@@ -139,7 +140,8 @@ void HttpRequestHeaders::AddHeadersFromString(
// TODO(willchan): Consider adding more StringPiece support in string_util.h
// to eliminate copies.
std::vector<std::string> header_line_vector;
- SplitStringUsingSubstr(headers.as_string(), "\r\n", &header_line_vector);
+ base::SplitStringUsingSubstr(headers.as_string(), "\r\n",
+ &header_line_vector);
for (std::vector<std::string>::const_iterator it = header_line_vector.begin();
it != header_line_vector.end(); ++it) {
if (!it->empty())