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

Side by Side Diff: chrome/browser/bookmarks/bookmark_folder_tree_model.cc

Issue 24011: chrome_resources take 2 (Closed)
Patch Set: rebase Created 11 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
« no previous file with comments | « chrome/browser/base_history_model.cc ('k') | chrome/browser/bookmarks/bookmark_table_model.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_folder_tree_model.h" 5 #include "chrome/browser/bookmarks/bookmark_folder_tree_model.h"
6 6
7 #include "chrome/app/theme/theme_resources.h" 7 #include "grit/theme_resources.h"
8 #include "chrome/common/l10n_util.h" 8 #include "chrome/common/l10n_util.h"
9 #include "chrome/common/resource_bundle.h" 9 #include "chrome/common/resource_bundle.h"
10 10
11 #include "generated_resources.h" 11 #include "generated_resources.h"
12 12
13 BookmarkFolderTreeModel::BookmarkFolderTreeModel(BookmarkModel* model) 13 BookmarkFolderTreeModel::BookmarkFolderTreeModel(BookmarkModel* model)
14 : views::TreeNodeModel<FolderNode>(new FolderNode(NULL)), 14 : views::TreeNodeModel<FolderNode>(new FolderNode(NULL)),
15 model_(model), 15 model_(model),
16 recently_bookmarked_node_(new FolderNode(NULL)), 16 recently_bookmarked_node_(new FolderNode(NULL)),
17 search_node_(new FolderNode(NULL)){ 17 search_node_(new FolderNode(NULL)){
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 for (int i = 0, folder_count = 0; i < parent->GetChildCount(); ++i) { 189 for (int i = 0, folder_count = 0; i < parent->GetChildCount(); ++i) {
190 BookmarkNode* child = parent->GetChild(i); 190 BookmarkNode* child = parent->GetChild(i);
191 if (child == node) 191 if (child == node)
192 return folder_count; 192 return folder_count;
193 if (child->is_folder()) 193 if (child->is_folder())
194 folder_count++; 194 folder_count++;
195 } 195 }
196 NOTREACHED(); 196 NOTREACHED();
197 return 0; 197 return 0;
198 } 198 }
OLDNEW
« no previous file with comments | « chrome/browser/base_history_model.cc ('k') | chrome/browser/bookmarks/bookmark_table_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698