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

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

Issue 130773004: Start moving context menu code to RenderFrame. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 11 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 247964)
+++ chrome/browser/tab_contents/render_view_context_menu_browsertest.cc (working copy)
@@ -48,7 +48,8 @@
params.writing_direction_right_to_left = 0;
#endif // OS_MACOSX
TestRenderViewContextMenu* menu = new TestRenderViewContextMenu(
- browser()->tab_strip_model()->GetActiveWebContents(), params);
+ browser()->tab_strip_model()->GetActiveWebContents()->GetMainFrame(),
+ params);
menu->Init();
return menu;
}
@@ -144,7 +145,7 @@
// Select "Open Link in New Tab" and wait for the new tab to be added.
TestRenderViewContextMenu menu(
- browser()->tab_strip_model()->GetActiveWebContents(),
+ browser()->tab_strip_model()->GetActiveWebContents()->GetMainFrame(),
context_menu_params);
menu.Init();
menu.ExecuteCommand(IDC_CONTENT_CONTEXT_OPENLINKNEWTAB, 0);
@@ -196,7 +197,7 @@
// Select "Open Link in Incognito Window" and wait for window to be added.
TestRenderViewContextMenu menu(
- browser()->tab_strip_model()->GetActiveWebContents(),
+ browser()->tab_strip_model()->GetActiveWebContents()->GetMainFrame(),
context_menu_params);
menu.Init();
menu.ExecuteCommand(IDC_CONTENT_CONTEXT_OPENLINKOFFTHERECORD, 0);

Powered by Google App Engine
This is Rietveld 408576698