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

Unified Diff: chrome/browser/views/bookmark_bar_view.cc

Issue 339092: Test case for fix to bug 26279. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 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 | « no previous file | chrome/browser/views/bookmark_bar_view_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/bookmark_bar_view.cc
===================================================================
--- chrome/browser/views/bookmark_bar_view.cc (revision 30584)
+++ chrome/browser/views/bookmark_bar_view.cc (working copy)
@@ -1214,9 +1214,11 @@
parent = model_->GetBookmarkBarNode();
nodes.push_back(parent);
}
+ // Browser may be null during testing.
+ PageNavigator* navigator =
+ browser() ? browser()->GetSelectedTabContents() : NULL;
BookmarkContextMenu controller(GetWindow()->GetNativeWindow(), GetProfile(),
- browser()->GetSelectedTabContents(),
- parent, nodes,
+ navigator, parent, nodes,
BookmarkContextMenuController::BOOKMARK_BAR);
controller.RunMenuAt(gfx::Point(x, y));
}
« no previous file with comments | « no previous file | chrome/browser/views/bookmark_bar_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698