From 8a16266e66a38bc1bfc6b00893c2a7c8cf8c55ee Mon Sep 17 00:00:00 2001 From: "tony@chromium.org" Date: Thu, 10 Sep 2009 21:08:39 +0000 Subject: Move StringPiece into the base namespace. It is colliding with the StringPiece class in icu4.2, which is a problem when trying to use the system version of icu. Review URL: http://codereview.chromium.org/193072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25920 0039d316-1c4b-4281-b951-d872f2087c98 --- net/http/http_util.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net/http/http_util.cc') diff --git a/net/http/http_util.cc b/net/http/http_util.cc index 4381117..41aa554 100644 --- a/net/http/http_util.cc +++ b/net/http/http_util.cc @@ -500,8 +500,8 @@ static bool IsLineSegmentContinuable(const char* begin, const char* end) { // Helper used by AssembleRawHeaders, to find the end of the status line. static const char* FindStatusLineEnd(const char* begin, const char* end) { - size_t i = StringPiece(begin, end - begin).find_first_of("\r\n"); - if (i == StringPiece::npos) + size_t i = base::StringPiece(begin, end - begin).find_first_of("\r\n"); + if (i == base::StringPiece::npos) return end; return begin + i; } -- cgit v1.1