OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_model.h" | 5 #include "chrome/browser/bookmarks/bookmark_model.h" |
6 | 6 |
| 7 #include "app/l10n_util.h" |
7 #include "base/gfx/png_decoder.h" | 8 #include "base/gfx/png_decoder.h" |
8 #include "base/scoped_vector.h" | 9 #include "base/scoped_vector.h" |
9 #include "build/build_config.h" | 10 #include "build/build_config.h" |
10 #include "chrome/browser/bookmarks/bookmark_utils.h" | 11 #include "chrome/browser/bookmarks/bookmark_utils.h" |
11 #include "chrome/browser/bookmarks/bookmark_storage.h" | 12 #include "chrome/browser/bookmarks/bookmark_storage.h" |
12 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/profile.h" | 14 #include "chrome/browser/profile.h" |
14 #include "chrome/common/l10n_util.h" | |
15 #include "chrome/common/notification_service.h" | 15 #include "chrome/common/notification_service.h" |
16 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
17 | 17 |
18 using base::Time; | 18 using base::Time; |
19 | 19 |
20 // BookmarkNode --------------------------------------------------------------- | 20 // BookmarkNode --------------------------------------------------------------- |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 // ID for BookmarkNodes. | 24 // ID for BookmarkNodes. |
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 } | 737 } |
738 | 738 |
739 void BookmarkModel::PopulateNodesByURL(BookmarkNode* node) { | 739 void BookmarkModel::PopulateNodesByURL(BookmarkNode* node) { |
740 // NOTE: this is called with url_lock_ already held. As such, this doesn't | 740 // NOTE: this is called with url_lock_ already held. As such, this doesn't |
741 // explicitly grab the lock. | 741 // explicitly grab the lock. |
742 if (node->is_url()) | 742 if (node->is_url()) |
743 nodes_ordered_by_url_set_.insert(node); | 743 nodes_ordered_by_url_set_.insert(node); |
744 for (int i = 0; i < node->GetChildCount(); ++i) | 744 for (int i = 0; i < node->GetChildCount(); ++i) |
745 PopulateNodesByURL(node->GetChild(i)); | 745 PopulateNodesByURL(node->GetChild(i)); |
746 } | 746 } |
OLD | NEW |