Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(966)

Unified Diff: printing/image.cc

Issue 1068593002: printing: Use MD5DigestToBase16() to get a human-readable hexadecimal string. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/image.cc
diff --git a/printing/image.cc b/printing/image.cc
index 5c832ad9d6e3fabab8ca558ff92fd9dd52b564d2..cb4776978f01f9fbfbf51434d271a8114ecda2d9 100644
--- a/printing/image.cc
+++ b/printing/image.cc
@@ -55,7 +55,7 @@ Image::~Image() {}
std::string Image::checksum() const {
base::MD5Digest digest;
base::MD5Sum(&data_[0], data_.size(), &digest);
- return base::HexEncode(&digest, sizeof(digest));
+ return base::MD5DigestToBase16(digest);
}
bool Image::SaveToPng(const base::FilePath& filepath) const {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698