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

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

Issue 9015022: Replace most of Browser::GetSelectedTabContents calls into Browser::GetSelectedWebContents. I've ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 12 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_browsertest.cc
===================================================================
--- chrome/browser/tab_contents/render_view_context_menu_browsertest.cc (revision 116109)
+++ chrome/browser/tab_contents/render_view_context_menu_browsertest.cc (working copy)
@@ -16,6 +16,8 @@
#include "content/public/browser/navigation_entry.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h"
+using content::WebContents;
+
namespace {
class TestRenderViewContextMenu : public RenderViewContextMenu {
@@ -44,8 +46,8 @@
params.media_type = WebKit::WebContextMenuData::MediaTypeNone;
params.unfiltered_link_url = unfiltered_url;
params.link_url = url;
- TabContents* tab_contents = browser()->GetSelectedTabContents();
- params.page_url = tab_contents->GetController().GetActiveEntry()->GetURL();
+ WebContents* web_contents = browser()->GetSelectedWebContents();
+ params.page_url = web_contents->GetController().GetActiveEntry()->GetURL();
#if defined(OS_MACOSX)
params.writing_direction_default = 0;
params.writing_direction_left_to_right = 0;
« no previous file with comments | « chrome/browser/sync/test/integration/sync_test.cc ('k') | chrome/browser/tab_contents/web_drag_source_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698