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

Unified Diff: chrome/browser/sync/profile_sync_service_typed_url_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
Index: chrome/browser/sync/profile_sync_service_typed_url_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc b/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc
index 02242916c101c8854367de08e6b00d0a84b917d2..c8aa931b6a174d5e688156ef4dc0fa70ed6a1b0e 100644
--- a/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc
@@ -427,7 +427,7 @@ TEST_F(ProfileSyncServiceTypedUrlTest, ProcessUserChangeAdd) {
history::URLsModifiedDetails details;
details.changed_urls.push_back(added_entry);
- scoped_refptr<ThreadNotifier> notifier = new ThreadNotifier(&history_thread_);
+ scoped_refptr<ThreadNotifier> notifier(new ThreadNotifier(&history_thread_));
notifier->Notify(NotificationType::HISTORY_TYPED_URLS_MODIFIED,
Details<history::URLsModifiedDetails>(&details));
@@ -460,7 +460,7 @@ TEST_F(ProfileSyncServiceTypedUrlTest, ProcessUserChangeUpdate) {
history::URLsModifiedDetails details;
details.changed_urls.push_back(updated_entry);
- scoped_refptr<ThreadNotifier> notifier = new ThreadNotifier(&history_thread_);
+ scoped_refptr<ThreadNotifier> notifier(new ThreadNotifier(&history_thread_));
notifier->Notify(NotificationType::HISTORY_TYPED_URLS_MODIFIED,
Details<history::URLsModifiedDetails>(&details));
@@ -495,7 +495,7 @@ TEST_F(ProfileSyncServiceTypedUrlTest, ProcessUserChangeRemove) {
history::URLsDeletedDetails changes;
changes.all_history = false;
changes.urls.insert(GURL("http://mine.com"));
- scoped_refptr<ThreadNotifier> notifier = new ThreadNotifier(&history_thread_);
+ scoped_refptr<ThreadNotifier> notifier(new ThreadNotifier(&history_thread_));
notifier->Notify(NotificationType::HISTORY_URLS_DELETED,
Details<history::URLsDeletedDetails>(&changes));
@@ -529,7 +529,7 @@ TEST_F(ProfileSyncServiceTypedUrlTest, ProcessUserChangeRemoveAll) {
history::URLsDeletedDetails changes;
changes.all_history = true;
- scoped_refptr<ThreadNotifier> notifier = new ThreadNotifier(&history_thread_);
+ scoped_refptr<ThreadNotifier> notifier(new ThreadNotifier(&history_thread_));
notifier->Notify(NotificationType::HISTORY_URLS_DELETED,
Details<history::URLsDeletedDetails>(&changes));
« no previous file with comments | « chrome/browser/sync/profile_sync_service_autofill_unittest.cc ('k') | chrome/browser/themes/browser_theme_pack.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698