| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/bookmarks/bookmark_utils.h" | 5 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 6 | 6 |
| 7 #include <utility> |
| 8 |
| 7 #include "app/drag_drop_types.h" | 9 #include "app/drag_drop_types.h" |
| 8 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
| 9 #include "app/tree_node_iterator.h" | 11 #include "app/tree_node_iterator.h" |
| 10 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 11 #include "base/file_path.h" | 13 #include "base/file_path.h" |
| 12 #include "base/string_number_conversions.h" | 14 #include "base/string_number_conversions.h" |
| 13 #include "base/string16.h" | 15 #include "base/string16.h" |
| 14 #include "base/time.h" | 16 #include "base/time.h" |
| 15 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
| 16 #include "chrome/browser/bookmarks/bookmark_node_data.h" | 18 #include "chrome/browser/bookmarks/bookmark_node_data.h" |
| 17 #include "chrome/browser/bookmarks/bookmark_model.h" | 19 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 18 #if defined(OS_MACOSX) | 20 #if defined(OS_MACOSX) |
| 19 #include "chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h" | 21 #include "chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h" |
| 20 #endif | 22 #endif |
| 21 #include "chrome/browser/browser_list.h" | 23 #include "chrome/browser/browser_list.h" |
| 22 #include "chrome/browser/browser_process.h" | |
| 23 #include "chrome/browser/browser_window.h" | 24 #include "chrome/browser/browser_window.h" |
| 24 #include "chrome/browser/history/query_parser.h" | 25 #include "chrome/browser/history/query_parser.h" |
| 25 #include "chrome/browser/platform_util.h" | 26 #include "chrome/browser/platform_util.h" |
| 26 #include "chrome/browser/prefs/pref_service.h" | 27 #include "chrome/browser/prefs/pref_service.h" |
| 27 #include "chrome/browser/profiles/profile.h" | 28 #include "chrome/browser/profiles/profile.h" |
| 28 #include "chrome/browser/tab_contents/page_navigator.h" | 29 #include "chrome/browser/tab_contents/page_navigator.h" |
| 29 #include "chrome/browser/tab_contents/tab_contents.h" | 30 #include "chrome/browser/tab_contents/tab_contents.h" |
| 30 #include "chrome/browser/ui/browser.h" | 31 #include "chrome/browser/ui/browser.h" |
| 31 #include "chrome/common/notification_service.h" | 32 #include "chrome/common/notification_service.h" |
| 32 #include "chrome/common/pref_names.h" | 33 #include "chrome/common/pref_names.h" |
| (...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 return true; | 662 return true; |
| 662 | 663 |
| 663 for (int i = 0; i < node->GetChildCount(); ++i) { | 664 for (int i = 0; i < node->GetChildCount(); ++i) { |
| 664 if (NodeHasURLs(node->GetChild(i))) | 665 if (NodeHasURLs(node->GetChild(i))) |
| 665 return true; | 666 return true; |
| 666 } | 667 } |
| 667 return false; | 668 return false; |
| 668 } | 669 } |
| 669 | 670 |
| 670 } // namespace bookmark_utils | 671 } // namespace bookmark_utils |
| OLD | NEW |