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

Unified Diff: chrome/test/ui/inspector_controller_uitest.cc

Issue 113722: Make automation proxy objects to ref_counted. That allows to process async no... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
« no previous file with comments | « chrome/test/ui/dom_checker_uitest.cc ('k') | chrome/test/ui/layout_plugin_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ui/inspector_controller_uitest.cc
===================================================================
--- chrome/test/ui/inspector_controller_uitest.cc (revision 17078)
+++ chrome/test/ui/inspector_controller_uitest.cc (working copy)
@@ -12,8 +12,8 @@
class InspectorControllerTest : public UITest {
protected:
- TabProxy* GetActiveTabProxy() {
- scoped_ptr<BrowserProxy> window_proxy(automation()->GetBrowserWindow(0));
+ scoped_refptr<TabProxy> GetActiveTabProxy() {
+ scoped_refptr<BrowserProxy> window_proxy(automation()->GetBrowserWindow(0));
EXPECT_TRUE(window_proxy.get());
int active_tab_index = 0;
@@ -36,7 +36,7 @@
HTTPTestServer::CreateServer(L"chrome/test/data", NULL);
ASSERT_TRUE(NULL != server.get());
- ::scoped_ptr<TabProxy> tab(GetActiveTabProxy());
+ scoped_refptr<TabProxy> tab(GetActiveTabProxy());
// We don't track resources until we've opened the inspector.
NavigateTab(tab.get(), server->TestServerPageW(
L"files/inspector/test1.html"));
« no previous file with comments | « chrome/test/ui/dom_checker_uitest.cc ('k') | chrome/test/ui/layout_plugin_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698