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

Unified Diff: chrome/browser/ui/views/bookmark_bar_view_test.cc

Issue 6452011: Rework tree APIs to reflect Google style and more const-correctness.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/bookmark_bar_view.cc ('k') | chrome/browser/ui/views/bookmark_editor_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/bookmark_bar_view_test.cc
===================================================================
--- chrome/browser/ui/views/bookmark_bar_view_test.cc (revision 74231)
+++ chrome/browser/ui/views/bookmark_bar_view_test.cc (working copy)
@@ -820,9 +820,9 @@
start_y_ = menu_loc.y();
// Move the mouse over the scroll button.
- views::View* scroll_container = menu->GetSubmenu()->GetParent();
+ views::View* scroll_container = menu->GetSubmenu()->parent();
ASSERT_TRUE(scroll_container != NULL);
- scroll_container = scroll_container->GetParent();
+ scroll_container = scroll_container->parent();
ASSERT_TRUE(scroll_container != NULL);
views::View* scroll_down_button = scroll_container->GetChildViewAt(1);
ASSERT_TRUE(scroll_down_button);
@@ -1172,7 +1172,7 @@
// Find the first separator.
views::SubmenuView* submenu = menu->GetSubmenu();
views::View* separator_view = NULL;
- for (int i = 0; i < submenu->GetChildViewCount(); ++i) {
+ for (int i = 0; i < submenu->child_count(); ++i) {
if (submenu->GetChildViewAt(i)->GetID() !=
views::MenuItemView::kMenuItemViewID) {
separator_view = submenu->GetChildViewAt(i);
« no previous file with comments | « chrome/browser/ui/views/bookmark_bar_view.cc ('k') | chrome/browser/ui/views/bookmark_editor_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698