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

Unified Diff: chrome/browser/session_history_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
Index: chrome/browser/session_history_uitest.cc
===================================================================
--- chrome/browser/session_history_uitest.cc (revision 17078)
+++ chrome/browser/session_history_uitest.cc (working copy)
@@ -31,12 +31,12 @@
virtual void SetUp() {
UITest::SetUp();
- window_.reset(automation()->GetBrowserWindow(0));
+ window_ = automation()->GetBrowserWindow(0);
ASSERT_TRUE(window_.get());
int active_tab_index = -1;
ASSERT_TRUE(window_->GetActiveTabIndex(&active_tab_index));
- tab_.reset(window_->GetTab(active_tab_index));
+ tab_ = window_->GetTab(active_tab_index);
ASSERT_TRUE(tab_.get());
}
@@ -98,8 +98,8 @@
protected:
wstring url_prefix_;
- scoped_ptr<BrowserProxy> window_;
- scoped_ptr<TabProxy> tab_;
+ scoped_refptr<BrowserProxy> window_;
+ scoped_refptr<TabProxy> tab_;
};
TEST_F(SessionHistoryTest, BasicBackForward) {
« no previous file with comments | « chrome/browser/renderer_host/resource_dispatcher_host_uitest.cc ('k') | chrome/browser/sessions/session_restore_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698