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

Unified Diff: chrome/browser/browsing_data_local_storage_helper_unittest.cc

Issue 4192012: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: fix presubmit Created 10 years, 2 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/browser/browsing_data_database_helper_unittest.cc ('k') | chrome/browser/cocoa/first_run_dialog.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data_local_storage_helper_unittest.cc
diff --git a/chrome/browser/browsing_data_local_storage_helper_unittest.cc b/chrome/browser/browsing_data_local_storage_helper_unittest.cc
index fe110c3a6b000d730d3cd3fc5d7f436c1e4fa43b..6fbb1eedb22e7e9475482113d4933c5732581fc9 100644
--- a/chrome/browser/browsing_data_local_storage_helper_unittest.cc
+++ b/chrome/browser/browsing_data_local_storage_helper_unittest.cc
@@ -45,8 +45,8 @@ TEST(CannedBrowsingDataLocalStorageTest, AddLocalStorage) {
const FilePath::CharType file2[] =
FILE_PATH_LITERAL("http_host2_1.localstorage");
- scoped_refptr<CannedBrowsingDataLocalStorageHelper> helper =
- new CannedBrowsingDataLocalStorageHelper(&profile);
+ scoped_refptr<CannedBrowsingDataLocalStorageHelper> helper(
+ new CannedBrowsingDataLocalStorageHelper(&profile));
helper->AddLocalStorage(origin1);
helper->AddLocalStorage(origin2);
@@ -70,8 +70,8 @@ TEST(CannedBrowsingDataLocalStorageTest, Unique) {
const FilePath::CharType file[] =
FILE_PATH_LITERAL("http_host1_1.localstorage");
- scoped_refptr<CannedBrowsingDataLocalStorageHelper> helper =
- new CannedBrowsingDataLocalStorageHelper(&profile);
+ scoped_refptr<CannedBrowsingDataLocalStorageHelper> helper(
+ new CannedBrowsingDataLocalStorageHelper(&profile));
helper->AddLocalStorage(origin);
helper->AddLocalStorage(origin);
@@ -92,8 +92,8 @@ TEST(CannedBrowsingDataLocalStorageTest, Empty) {
const GURL origin("http://host1:1/");
- scoped_refptr<CannedBrowsingDataLocalStorageHelper> helper =
- new CannedBrowsingDataLocalStorageHelper(&profile);
+ scoped_refptr<CannedBrowsingDataLocalStorageHelper> helper(
+ new CannedBrowsingDataLocalStorageHelper(&profile));
ASSERT_TRUE(helper->empty());
helper->AddLocalStorage(origin);
« no previous file with comments | « chrome/browser/browsing_data_database_helper_unittest.cc ('k') | chrome/browser/cocoa/first_run_dialog.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698