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

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

Issue 10535088: TabContentsWrapper -> TabContents, part 30. (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/tab_contents/render_view_context_menu_win.cc
diff --git a/chrome/browser/tab_contents/render_view_context_menu_win.cc b/chrome/browser/tab_contents/render_view_context_menu_win.cc
index 8493a23cdee18613f84f5fa7f813582ef60a5368..8c16a951e174eaa12cd4a4255108054d272662f3 100644
--- a/chrome/browser/tab_contents/render_view_context_menu_win.cc
+++ b/chrome/browser/tab_contents/render_view_context_menu_win.cc
@@ -66,7 +66,7 @@ void RenderViewContextMenuWin::ExecuteCommand(int command_id,
NEW_FOREGROUND_TAB,
content::PAGE_TRANSITION_LINK,
false);
- WebContents* source_web_contents = browser->GetSelectedWebContents();
+ WebContents* source_web_contents = browser->GetActiveWebContents();
WebContents* new_contents = source_web_contents->OpenURL(url_params);
DCHECK(new_contents);
return;

Powered by Google App Engine
This is Rietveld 408576698