summaryrefslogtreecommitdiffstats
path: root/net/http/http_vary_data.cc
diff options
context:
space:
mode:
authordominich@chromium.org <dominich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-26 23:39:50 +0000
committerdominich@chromium.org <dominich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-26 23:39:50 +0000
commita3bcff633580fa9afd4653817f497d8a49235994 (patch)
treed81bbfab47ed019ea0eb47ccdfb914944f7bafdf /net/http/http_vary_data.cc
parentd045e3746c58aa12b603dc596e683f4f9f14f5a9 (diff)
downloadchromium_src-a3bcff633580fa9afd4653817f497d8a49235994.zip
chromium_src-a3bcff633580fa9afd4653817f497d8a49235994.tar.gz
chromium_src-a3bcff633580fa9afd4653817f497d8a49235994.tar.bz2
MD5Update function uses StringPiece instead of raw buffer.
BUG=none TEST=base_unittests --gtest_filter=MD5.ContextWithStringData* Review URL: http://codereview.chromium.org/7466003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94203 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_vary_data.cc')
-rw-r--r--net/http/http_vary_data.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http/http_vary_data.cc b/net/http/http_vary_data.cc
index cb41a36..882dc78 100644
--- a/net/http/http_vary_data.cc
+++ b/net/http/http_vary_data.cc
@@ -120,7 +120,7 @@ void HttpVaryData::AddField(const HttpRequestInfo& request_info,
// For example, "foo: 12\nbar: 3" looks like "foo: 1\nbar: 23" otherwise.
request_value.append(1, '\n');
- base::MD5Update(ctx, request_value.data(), request_value.size());
+ base::MD5Update(ctx, request_value);
}
} // namespace net