Index: content/child/npapi/plugin_host.cc |
diff --git a/content/child/npapi/plugin_host.cc b/content/child/npapi/plugin_host.cc |
index e9cdb4adef123ee3ccd96ddb601bccc2151f47b9..ea7d0a00274b87a020d6fdb09fdfe9da46430c69 100644 |
--- a/content/child/npapi/plugin_host.cc |
+++ b/content/child/npapi/plugin_host.cc |
@@ -271,7 +271,7 @@ bool PluginHost::SetPostData(const char* buf, |
break; |
case GETVALUE: |
// Got a header. |
- name = base::StringToLowerASCII(std::string(start, ptr - start)); |
+ name = base::ToLowerASCII(base::StringPiece(start, ptr - start)); |
base::TrimWhitespace(name, base::TRIM_ALL, &name); |
start = ptr + 1; |
break; |