summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/util/crypto_helpers.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/sync/util/crypto_helpers.cc')
-rw-r--r--chrome/browser/sync/util/crypto_helpers.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/sync/util/crypto_helpers.cc b/chrome/browser/sync/util/crypto_helpers.cc
index b01e01f..9315d8b 100644
--- a/chrome/browser/sync/util/crypto_helpers.cc
+++ b/chrome/browser/sync/util/crypto_helpers.cc
@@ -21,6 +21,8 @@ MD5Calculator::MD5Calculator() {
MD5Init(&context_);
}
+MD5Calculator::~MD5Calculator() {}
+
void MD5Calculator::AddData(const unsigned char* data, int length) {
CHECK(bin_digest_.empty());
MD5Update(&context_, data, length);
@@ -34,7 +36,7 @@ void MD5Calculator::CalcDigest() {
}
}
-vector<uint8> MD5Calculator::GetDigest() {
+const vector<uint8>& MD5Calculator::GetDigest() {
CalcDigest();
return bin_digest_;
}