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

Unified Diff: content/browser/web_contents/web_contents_impl_unittest.cc

Issue 504273002: Remove implicit conversions from scoped_refptr to T* in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: content/browser/web_contents/web_contents_impl_unittest.cc
diff --git a/content/browser/web_contents/web_contents_impl_unittest.cc b/content/browser/web_contents/web_contents_impl_unittest.cc
index 3d37ab9b7762688db21a989bb4e79862cb0c07bc..e2ef0e578ae3c1c8ea288b508e7229fdf1343233 100644
--- a/content/browser/web_contents/web_contents_impl_unittest.cc
+++ b/content/browser/web_contents/web_contents_impl_unittest.cc
@@ -2591,12 +2591,12 @@ TEST_F(WebContentsImplTest, ActiveContentsCountBasic) {
EXPECT_EQ(0u, instance2->GetRelatedActiveContentsCount());
scoped_ptr<TestWebContents> contents1(
- TestWebContents::Create(browser_context(), instance1));
+ TestWebContents::Create(browser_context(), instance1.get()));
EXPECT_EQ(1u, instance1->GetRelatedActiveContentsCount());
EXPECT_EQ(1u, instance2->GetRelatedActiveContentsCount());
scoped_ptr<TestWebContents> contents2(
- TestWebContents::Create(browser_context(), instance1));
+ TestWebContents::Create(browser_context(), instance1.get()));
EXPECT_EQ(2u, instance1->GetRelatedActiveContentsCount());
EXPECT_EQ(2u, instance2->GetRelatedActiveContentsCount());
@@ -2618,7 +2618,7 @@ TEST_F(WebContentsImplTest, ActiveContentsCountNavigate) {
EXPECT_EQ(0u, instance->GetRelatedActiveContentsCount());
scoped_ptr<TestWebContents> contents(
- TestWebContents::Create(browser_context(), instance));
+ TestWebContents::Create(browser_context(), instance.get()));
EXPECT_EQ(1u, instance->GetRelatedActiveContentsCount());
// Navigate to a URL.
@@ -2656,7 +2656,7 @@ TEST_F(WebContentsImplTest, ActiveContentsCountChangeBrowsingInstance) {
EXPECT_EQ(0u, instance->GetRelatedActiveContentsCount());
scoped_ptr<TestWebContents> contents(
- TestWebContents::Create(browser_context(), instance));
+ TestWebContents::Create(browser_context(), instance.get()));
EXPECT_EQ(1u, instance->GetRelatedActiveContentsCount());
// Navigate to a URL.
« no previous file with comments | « content/browser/utility_process_host_impl.cc ('k') | content/browser/web_contents/web_contents_view_aura_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698