From 802376eb9aacca5284b76da93face73a9488bdb6 Mon Sep 17 00:00:00 2001 From: "stoyan@chromium.org" Date: Thu, 28 May 2009 19:12:46 +0000 Subject: Make automation proxy objects to ref_counted. That allows to process async notifications directly in channel background thread. Add support for listener-less ChannelProxy. BUG=none TEST=none Review URL: http://codereview.chromium.org/113722 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17093 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/ui/layout_plugin_uitest.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'chrome/test/ui/layout_plugin_uitest.cc') diff --git a/chrome/test/ui/layout_plugin_uitest.cc b/chrome/test/ui/layout_plugin_uitest.cc index 3f4ba9d..e5c10f4 100644 --- a/chrome/test/ui/layout_plugin_uitest.cc +++ b/chrome/test/ui/layout_plugin_uitest.cc @@ -63,7 +63,7 @@ TEST_F(LayoutPluginTester, UnloadNoCrash) { NavigateToURL(net::FilePathToFileURL(path)); std::wstring title; - TabProxy* tab = GetActiveTab(); + scoped_refptr tab = GetActiveTab(); ASSERT_TRUE(tab); EXPECT_TRUE(tab->GetTabTitle(&title)); EXPECT_EQ(L"Layout Test Plugin Test", title); @@ -71,6 +71,4 @@ TEST_F(LayoutPluginTester, UnloadNoCrash) { ASSERT_TRUE(tab->GoBack()); EXPECT_TRUE(tab->GetTabTitle(&title)); EXPECT_EQ(L"", title); - - delete tab; } -- cgit v1.1