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

Unified Diff: net/http/http_request_headers.cc

Issue 3284005: base: Move SplitStringUsingSubstr functions from string_util.h to string_split.h (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: fix base_unittests Created 10 years, 4 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 | « base/string_util_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_request_headers.cc
diff --git a/net/http/http_request_headers.cc b/net/http/http_request_headers.cc
index c534967d35d68c1c7a239e7c2ff1bfcb9fe91b2e..9f2eb90b4b979b5d2d19bed7f25d1c953179f5c3 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())
« no previous file with comments | « base/string_util_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698