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

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

Issue 1662843002: Revert of Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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_utils.h" 5 #include "components/bookmarks/browser/bookmark_utils.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/containers/hash_tables.h" 11 #include "base/containers/hash_tables.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/i18n/case_conversion.h" 13 #include "base/i18n/case_conversion.h"
14 #include "base/i18n/string_search.h" 14 #include "base/i18n/string_search.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/metrics/user_metrics_action.h" 16 #include "base/metrics/user_metrics_action.h"
17 #include "base/prefs/pref_service.h"
17 #include "base/strings/string_util.h" 18 #include "base/strings/string_util.h"
18 #include "base/strings/stringprintf.h" 19 #include "base/strings/stringprintf.h"
19 #include "base/strings/utf_string_conversions.h" 20 #include "base/strings/utf_string_conversions.h"
20 #include "base/time/time.h" 21 #include "base/time/time.h"
21 #include "build/build_config.h" 22 #include "build/build_config.h"
22 #include "components/bookmarks/browser/bookmark_client.h" 23 #include "components/bookmarks/browser/bookmark_client.h"
23 #include "components/bookmarks/browser/bookmark_model.h" 24 #include "components/bookmarks/browser/bookmark_model.h"
24 #include "components/bookmarks/browser/scoped_group_bookmark_actions.h" 25 #include "components/bookmarks/browser/scoped_group_bookmark_actions.h"
25 #include "components/bookmarks/common/bookmark_pref_names.h" 26 #include "components/bookmarks/common/bookmark_pref_names.h"
26 #include "components/pref_registry/pref_registry_syncable.h" 27 #include "components/pref_registry/pref_registry_syncable.h"
27 #include "components/prefs/pref_service.h"
28 #include "components/query_parser/query_parser.h" 28 #include "components/query_parser/query_parser.h"
29 #include "components/url_formatter/url_formatter.h" 29 #include "components/url_formatter/url_formatter.h"
30 #include "ui/base/clipboard/clipboard.h" 30 #include "ui/base/clipboard/clipboard.h"
31 #include "ui/base/models/tree_node_iterator.h" 31 #include "ui/base/models/tree_node_iterator.h"
32 #include "url/gurl.h" 32 #include "url/gurl.h"
33 33
34 using base::Time; 34 using base::Time;
35 35
36 namespace bookmarks { 36 namespace bookmarks {
37 37
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 bool HasDescendantsOf(const std::vector<const BookmarkNode*>& list, 561 bool HasDescendantsOf(const std::vector<const BookmarkNode*>& list,
562 const BookmarkNode* root) { 562 const BookmarkNode* root) {
563 for (const BookmarkNode* node : list) { 563 for (const BookmarkNode* node : list) {
564 if (IsDescendantOf(node, root)) 564 if (IsDescendantOf(node, root))
565 return true; 565 return true;
566 } 566 }
567 return false; 567 return false;
568 } 568 }
569 569
570 } // namespace bookmarks 570 } // namespace bookmarks
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698