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_table_model.h" | 5 #include "chrome/browser/bookmarks/bookmark_table_model.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
| 9 #include "app/l10n_util.h" |
9 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
10 #include "base/string_util.h" | 11 #include "base/string_util.h" |
11 #include "base/time_format.h" | 12 #include "base/time_format.h" |
12 #include "chrome/browser/bookmarks/bookmark_utils.h" | 13 #include "chrome/browser/bookmarks/bookmark_utils.h" |
13 #include "chrome/common/l10n_util.h" | |
14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
16 #include "grit/theme_resources.h" | 16 #include "grit/theme_resources.h" |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 // Number of bookmarks shown in recently bookmarked. | 20 // Number of bookmarks shown in recently bookmarked. |
21 const int kRecentlyBookmarkedCount = 50; | 21 const int kRecentlyBookmarkedCount = 50; |
22 | 22 |
23 // VectorBackedBookmarkTableModel ---------------------------------------------- | 23 // VectorBackedBookmarkTableModel ---------------------------------------------- |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 return; | 383 return; |
384 } | 384 } |
385 if (node == model()->other_node()) { | 385 if (node == model()->other_node()) { |
386 *path = l10n_util::GetString(IDS_BOOKMARK_TABLE_OTHER_BOOKMARKS_PATH); | 386 *path = l10n_util::GetString(IDS_BOOKMARK_TABLE_OTHER_BOOKMARKS_PATH); |
387 return; | 387 return; |
388 } | 388 } |
389 BuildPath(node->GetParent(), path); | 389 BuildPath(node->GetParent(), path); |
390 path->append(l10n_util::GetString(IDS_BOOKMARK_TABLE_PATH_SEPARATOR)); | 390 path->append(l10n_util::GetString(IDS_BOOKMARK_TABLE_PATH_SEPARATOR)); |
391 path->append(node->GetTitle()); | 391 path->append(node->GetTitle()); |
392 } | 392 } |
OLD | NEW |