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

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

Issue 10692164: Remove browser::FindTabbedBrowser call in bookmark_utils.cc. All callers, with the exception of met… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
Index: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
===================================================================
--- chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (revision 146039)
+++ chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (working copy)
@@ -1042,16 +1042,16 @@
WindowOpenDisposition disposition_from_event_flags =
chrome::DispositionFromEventFlags(sender->mouse_event_flags());
- Profile* profile = browser_->profile();
if (node->is_url()) {
- RecordAppLaunch(profile, node->url());
+ RecordAppLaunch(browser_->profile(), node->url());
OpenURLParams params(
node->url(), Referrer(), disposition_from_event_flags,
content::PAGE_TRANSITION_AUTO_BOOKMARK, false);
page_navigator_->OpenURL(params);
} else {
- bookmark_utils::OpenAll(GetWidget()->GetNativeWindow(), profile,
- page_navigator_, node, disposition_from_event_flags);
+ bookmark_utils::OpenAll(
+ GetWidget()->GetNativeWindow(), page_navigator_, node,
+ disposition_from_event_flags);
}
bookmark_utils::RecordBookmarkLaunch(IsDetached() ?

Powered by Google App Engine
This is Rietveld 408576698