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

Unified Diff: chrome/browser/extensions/api/web_navigation/web_navigation_apitest.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/extensions/api/web_navigation/web_navigation_apitest.cc
===================================================================
--- chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc (revision 247964)
+++ chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc (working copy)
@@ -53,9 +53,9 @@
// An UI-less RenderViewContextMenu.
class TestRenderViewContextMenu : public RenderViewContextMenu {
public:
- TestRenderViewContextMenu(WebContents* web_contents,
+ TestRenderViewContextMenu(content::RenderFrameHost* render_frame_host,
const content::ContextMenuParams& params)
- : RenderViewContextMenu(web_contents, params) {
+ : RenderViewContextMenu(render_frame_host, params) {
}
virtual ~TestRenderViewContextMenu() {}
@@ -520,7 +520,7 @@
frame_navigation_state().GetMainFrameID().frame_num;
params.link_url = extension->GetResourceURL("b.html");
- TestRenderViewContextMenu menu(tab, params);
+ TestRenderViewContextMenu menu(tab->GetMainFrame(), params);
menu.Init();
menu.ExecuteCommand(IDC_CONTENT_CONTEXT_OPENLINKNEWTAB, 0);

Powered by Google App Engine
This is Rietveld 408576698