From bb81f384b9ed7b1da8e2f703ced60dabc629309d Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Tue, 3 Jan 2012 22:45:44 +0000 Subject: Convert the remaining Browser::GetSelectedTabContents() calls to GetSelectedWebContents, and update all dependent code. BUG=98716 TBR=joi Review URL: http://codereview.chromium.org/9074012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116226 0039d316-1c4b-4281-b951-d872f2087c98 --- .../custom_handlers/protocol_handler_registry_browsertest.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/browser/custom_handlers') diff --git a/chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc b/chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc index 7e09693..6208cdf 100644 --- a/chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc +++ b/chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc @@ -22,8 +22,8 @@ namespace { class TestRenderViewContextMenu : public RenderViewContextMenu { public: - TestRenderViewContextMenu(TabContents* tab_contents, ContextMenuParams params) - : RenderViewContextMenu(tab_contents, params) { } + TestRenderViewContextMenu(WebContents* web_contents, ContextMenuParams params) + : RenderViewContextMenu(web_contents, params) { } virtual void PlatformInit() { } virtual bool GetAcceleratorForCommandId( @@ -54,7 +54,7 @@ class RegisterProtocolHandlerBrowserTest : public InProcessBrowserTest { params.writing_direction_right_to_left = 0; #endif // OS_MACOSX TestRenderViewContextMenu* menu = new TestRenderViewContextMenu( - browser()->GetSelectedTabContents(), params); + browser()->GetSelectedWebContents(), params); menu->Init(); return menu; } -- cgit v1.1