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

Unified Diff: chrome/browser/sync/profile_sync_service_unittest.cc

Issue 1165913002: [Cleanup] Used scoped pointers in KeyedServiceFactory's SetTestingFactory functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 6 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_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_unittest.cc b/chrome/browser/sync/profile_sync_service_unittest.cc
index d8cf8c2daf81d6e1e3ee98702189b3787cfc50b6..6c7dc78ecf6ceb4458445b90533c09728923495c 100644
--- a/chrome/browser/sync/profile_sync_service_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_unittest.cc
@@ -162,11 +162,11 @@ ACTION_P(ReturnNewMockHostCollectDeleteDirParam, delete_dir_param) {
delete_dir_param);
}
-KeyedService* BuildFakeProfileInvalidationProvider(
+scoped_ptr<KeyedService> BuildFakeProfileInvalidationProvider(
content::BrowserContext* context) {
- return new invalidation::ProfileInvalidationProvider(
+ return make_scoped_ptr(new invalidation::ProfileInvalidationProvider(
scoped_ptr<invalidation::InvalidationService>(
- new invalidation::FakeInvalidationService));
+ new invalidation::FakeInvalidationService)));
}
// A test harness that uses a real ProfileSyncService and in most cases a

Powered by Google App Engine
This is Rietveld 408576698