| 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_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" | |
| 18 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
| 19 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
| 20 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
| 21 #include "base/time/time.h" | 20 #include "base/time/time.h" |
| 22 #include "build/build_config.h" | 21 #include "build/build_config.h" |
| 23 #include "components/bookmarks/browser/bookmark_client.h" | 22 #include "components/bookmarks/browser/bookmark_client.h" |
| 24 #include "components/bookmarks/browser/bookmark_model.h" | 23 #include "components/bookmarks/browser/bookmark_model.h" |
| 25 #include "components/bookmarks/browser/scoped_group_bookmark_actions.h" | 24 #include "components/bookmarks/browser/scoped_group_bookmark_actions.h" |
| 26 #include "components/bookmarks/common/bookmark_pref_names.h" | 25 #include "components/bookmarks/common/bookmark_pref_names.h" |
| 27 #include "components/pref_registry/pref_registry_syncable.h" | 26 #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 Loading... |
| 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 |
| OLD | NEW |