From ad8e04ac88be37d5ccb6c2cf61f52b224dca493c Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Mon, 1 Nov 2010 04:16:27 +0000 Subject: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 This CL was created automatically by this clang rewriter: http://codereview.appspot.com/2776043/ . I manually fixed a few rough spots of the rewriter output (doh1-3) and fixed all presubmit errors. BUG=28083 TEST=None Review URL: http://codereview.chromium.org/4192012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64573 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browsing_data_database_helper_unittest.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'chrome/browser/browsing_data_database_helper_unittest.cc') diff --git a/chrome/browser/browsing_data_database_helper_unittest.cc b/chrome/browser/browsing_data_database_helper_unittest.cc index c8f1c18..ca23f39 100644 --- a/chrome/browser/browsing_data_database_helper_unittest.cc +++ b/chrome/browser/browsing_data_database_helper_unittest.cc @@ -46,8 +46,8 @@ TEST(CannedBrowsingDataDatabaseTest, AddDatabase) { const char db2[] = "db2"; const char db3[] = "db3"; - scoped_refptr helper = - new CannedBrowsingDataDatabaseHelper(&profile); + scoped_refptr helper( + new CannedBrowsingDataDatabaseHelper(&profile)); helper->AddDatabase(origin1, db1, ""); helper->AddDatabase(origin1, db2, ""); helper->AddDatabase(origin2, db3, ""); @@ -76,8 +76,8 @@ TEST(CannedBrowsingDataDatabaseTest, Unique) { const char origin_str[] = "http_host1_1"; const char db[] = "db1"; - scoped_refptr helper = - new CannedBrowsingDataDatabaseHelper(&profile); + scoped_refptr helper( + new CannedBrowsingDataDatabaseHelper(&profile)); helper->AddDatabase(origin, db, ""); helper->AddDatabase(origin, db, ""); @@ -100,8 +100,8 @@ TEST(CannedBrowsingDataDatabaseTest, Empty) { const GURL origin("http://host1:1/"); const char db[] = "db1"; - scoped_refptr helper = - new CannedBrowsingDataDatabaseHelper(&profile); + scoped_refptr helper( + new CannedBrowsingDataDatabaseHelper(&profile)); ASSERT_TRUE(helper->empty()); helper->AddDatabase(origin, db, ""); -- cgit v1.1