OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/bookmarks/browser/bookmark_codec.h" | 5 #include "components/bookmarks/browser/bookmark_codec.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
9 #include "base/json/json_string_value_serializer.h" | 11 #include "base/json/json_string_value_serializer.h" |
10 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
12 #include "base/values.h" | 14 #include "base/values.h" |
13 #include "components/bookmarks/browser/bookmark_model.h" | 15 #include "components/bookmarks/browser/bookmark_model.h" |
14 #include "grit/components_strings.h" | 16 #include "grit/components_strings.h" |
15 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
16 #include "url/gurl.h" | 18 #include "url/gurl.h" |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 base::MD5Init(&md5_context_); | 483 base::MD5Init(&md5_context_); |
482 } | 484 } |
483 | 485 |
484 void BookmarkCodec::FinalizeChecksum() { | 486 void BookmarkCodec::FinalizeChecksum() { |
485 base::MD5Digest digest; | 487 base::MD5Digest digest; |
486 base::MD5Final(&digest, &md5_context_); | 488 base::MD5Final(&digest, &md5_context_); |
487 computed_checksum_ = base::MD5DigestToBase16(digest); | 489 computed_checksum_ = base::MD5DigestToBase16(digest); |
488 } | 490 } |
489 | 491 |
490 } // namespace bookmarks | 492 } // namespace bookmarks |
OLD | NEW |