summaryrefslogtreecommitdiffstats
path: root/chrome/browser/custom_handlers
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-13 15:46:40 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-13 15:46:40 +0000
commitfb0728cf1761403db3e2ded2c4cc9426b981b09b (patch)
tree2a540280f7fb5ae5a54fee827e1899b1b59a3985 /chrome/browser/custom_handlers
parent237c404691c13d4932e8b29198c6183b51479c09 (diff)
downloadchromium_src-fb0728cf1761403db3e2ded2c4cc9426b981b09b.zip
chromium_src-fb0728cf1761403db3e2ded2c4cc9426b981b09b.tar.gz
chromium_src-fb0728cf1761403db3e2ded2c4cc9426b981b09b.tar.bz2
TabContentsWrapper -> TabContents, part 56.
That's almost all. BUG=131026 TEST=no change Review URL: https://chromiumcodereview.appspot.com/10551002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141891 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/custom_handlers')
-rw-r--r--chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc b/chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc
index ff2e804..bd8e6a7 100644
--- a/chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc
+++ b/chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc
@@ -51,7 +51,7 @@ class RegisterProtocolHandlerBrowserTest : public InProcessBrowserTest {
params.media_type = WebKit::WebContextMenuData::MediaTypeNone;
params.link_url = url;
params.unfiltered_link_url = url;
- WebContents* web_contents = browser()->GetSelectedWebContents();
+ WebContents* web_contents = browser()->GetActiveWebContents();
params.page_url = web_contents->GetController().GetActiveEntry()->GetURL();
#if defined(OS_MACOSX)
params.writing_direction_default = 0;
@@ -59,7 +59,7 @@ class RegisterProtocolHandlerBrowserTest : public InProcessBrowserTest {
params.writing_direction_right_to_left = 0;
#endif // OS_MACOSX
TestRenderViewContextMenu* menu = new TestRenderViewContextMenu(
- browser()->GetSelectedWebContents(), params);
+ browser()->GetActiveWebContents(), params);
menu->Init();
return menu;
}
@@ -107,5 +107,5 @@ IN_PROC_BROWSER_TEST_F(RegisterProtocolHandlerBrowserTest, CustomHandler) {
ui_test_utils::NavigateToURL(browser(), GURL("foo:test"));
- ASSERT_EQ(handler_url, browser()->GetSelectedWebContents()->GetURL());
+ ASSERT_EQ(handler_url, browser()->GetActiveWebContents()->GetURL());
}