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

Unified Diff: chrome/browser/cocoa/browser_window_controller.mm

Issue 174021: Convert users of the "get last active browser, get selected tab contents, ope... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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/cocoa/browser_window_controller.mm
===================================================================
--- chrome/browser/cocoa/browser_window_controller.mm (revision 23676)
+++ chrome/browser/cocoa/browser_window_controller.mm (working copy)
@@ -871,10 +871,7 @@
// Called by the bookmark bar to open a URL.
- (void)openBookmarkURL:(const GURL&)url
disposition:(WindowOpenDisposition)disposition {
- TabContents* tab_contents = browser_->GetSelectedTabContents();
- DCHECK(tab_contents);
- tab_contents->OpenURL(url, GURL(), disposition,
- PageTransition::AUTO_BOOKMARK);
+ browser_->OpenURL(url, GURL(), disposition, PageTransition::AUTO_BOOKMARK);
}
- (NSInteger)numberOfTabs {
« no previous file with comments | « chrome/browser/cocoa/bookmark_menu_cocoa_controller.mm ('k') | chrome/browser/cocoa/history_menu_cocoa_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698