| Index: chrome/browser/bookmarks/bookmark_codec.cc
|
| diff --git a/chrome/browser/bookmarks/bookmark_codec.cc b/chrome/browser/bookmarks/bookmark_codec.cc
|
| index 23bd411aa27b4f0522d13de3446bf86a921494d8..0a70e5c092747a8e078c28051a1a07def9265ebf 100644
|
| --- a/chrome/browser/bookmarks/bookmark_codec.cc
|
| +++ b/chrome/browser/bookmarks/bookmark_codec.cc
|
| @@ -337,11 +337,14 @@ void BookmarkCodec::ReassignIDsHelper(BookmarkNode* node) {
|
| }
|
|
|
| void BookmarkCodec::UpdateChecksum(const std::string& str) {
|
| - base::MD5Update(&md5_context_, str.data(), str.length() * sizeof(char));
|
| + base::MD5Update(&md5_context_, str);
|
| }
|
|
|
| void BookmarkCodec::UpdateChecksum(const string16& str) {
|
| - base::MD5Update(&md5_context_, str.data(), str.length() * sizeof(char16));
|
| + base::MD5Update(&md5_context_,
|
| + base::StringPiece(
|
| + reinterpret_cast<const char*>(str.data()),
|
| + str.length() * sizeof(str[0])));
|
| }
|
|
|
| void BookmarkCodec::UpdateChecksumWithUrlNode(const std::string& id,
|
|
|