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

Side by Side Diff: components/bookmarks/browser/bookmark_codec.cc

Issue 2712513004: Use a qualified path for grit-generated headers in components/ (Closed)
Patch Set: more checkdeps Created 3 years, 9 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 unified diff | Download patch
OLDNEW
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> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/json/json_string_value_serializer.h" 12 #include "base/json/json_string_value_serializer.h"
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
15 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
16 #include "base/values.h" 16 #include "base/values.h"
17 #include "components/bookmarks/browser/bookmark_model.h" 17 #include "components/bookmarks/browser/bookmark_model.h"
18 #include "grit/components_strings.h" 18 #include "components/strings/grit/components_strings.h"
19 #include "ui/base/l10n/l10n_util.h" 19 #include "ui/base/l10n/l10n_util.h"
20 #include "url/gurl.h" 20 #include "url/gurl.h"
21 21
22 using base::Time; 22 using base::Time;
23 23
24 namespace bookmarks { 24 namespace bookmarks {
25 25
26 const char BookmarkCodec::kRootsKey[] = "roots"; 26 const char BookmarkCodec::kRootsKey[] = "roots";
27 const char BookmarkCodec::kRootFolderNameKey[] = "bookmark_bar"; 27 const char BookmarkCodec::kRootFolderNameKey[] = "bookmark_bar";
28 const char BookmarkCodec::kOtherBookmarkFolderNameKey[] = "other"; 28 const char BookmarkCodec::kOtherBookmarkFolderNameKey[] = "other";
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 base::MD5Init(&md5_context_); 492 base::MD5Init(&md5_context_);
493 } 493 }
494 494
495 void BookmarkCodec::FinalizeChecksum() { 495 void BookmarkCodec::FinalizeChecksum() {
496 base::MD5Digest digest; 496 base::MD5Digest digest;
497 base::MD5Final(&digest, &md5_context_); 497 base::MD5Final(&digest, &md5_context_);
498 computed_checksum_ = base::MD5DigestToBase16(digest); 498 computed_checksum_ = base::MD5DigestToBase16(digest);
499 } 499 }
500 500
501 } // namespace bookmarks 501 } // namespace bookmarks
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698