diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-10 20:42:18 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-10 20:42:18 +0000 |
commit | 738eea90c25f553df072450ad973929affe4da42 (patch) | |
tree | d34966ff8d10eea43fce7014832ca245c6efe455 | |
parent | 9230ac4333edf1449bfba5a3eea17e6b8064f3b0 (diff) | |
download | chromium_src-738eea90c25f553df072450ad973929affe4da42.zip chromium_src-738eea90c25f553df072450ad973929affe4da42.tar.gz chromium_src-738eea90c25f553df072450ad973929affe4da42.tar.bz2 |
Fix an incorrect use of wstring::npos.
It's a good thing wstring::npos == string::npos, otherwise this
would've been a bug!
BUG=23581
TEST=compiles
Review URL: http://codereview.chromium.org/6191002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70934 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | webkit/glue/multipart_response_delegate.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/webkit/glue/multipart_response_delegate.cc b/webkit/glue/multipart_response_delegate.cc index b8c7758..4bcaf18 100644 --- a/webkit/glue/multipart_response_delegate.cc +++ b/webkit/glue/multipart_response_delegate.cc @@ -291,9 +291,8 @@ bool MultipartResponseDelegate::ReadMultipartBoundary( response.httpHeaderField(WebString::fromUTF8("Content-Type")).utf8(); size_t boundary_start_offset = content_type.find("boundary="); - if (boundary_start_offset == std::wstring::npos) { + if (boundary_start_offset == std::string::npos) return false; - } boundary_start_offset += strlen("boundary="); |