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

Unified Diff: chrome/browser/ui/views/tab_contents/render_view_context_menu_win.cc

Issue 10702029: Move tab functions off Browser into browser_tabstrip and browser_tabrestore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/tab_contents/render_view_context_menu_win.cc
===================================================================
--- chrome/browser/ui/views/tab_contents/render_view_context_menu_win.cc (revision 145001)
+++ chrome/browser/ui/views/tab_contents/render_view_context_menu_win.cc (working copy)
@@ -9,6 +9,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/tab_contents/retargeting_details.h"
#include "chrome/browser/ui/browser_finder.h"
+#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/common/chrome_notification_types.h"
#include "content/public/browser/web_contents.h"
@@ -66,7 +67,7 @@
NEW_FOREGROUND_TAB,
content::PAGE_TRANSITION_LINK,
false);
- WebContents* source_web_contents = browser->GetActiveWebContents();
+ WebContents* source_web_contents = chrome::GetActiveWebContents(browser);
WebContents* new_contents = source_web_contents->OpenURL(url_params);
DCHECK(new_contents);
return;

Powered by Google App Engine
This is Rietveld 408576698