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

Unified Diff: chrome/browser/invalidation/profile_invalidation_provider_factory.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/invalidation/profile_invalidation_provider_factory.cc
diff --git a/chrome/browser/invalidation/profile_invalidation_provider_factory.cc b/chrome/browser/invalidation/profile_invalidation_provider_factory.cc
index 39b401a685b1ded60dc1749e2e1abc1da85d43c3..4bc6171c777f11255d72363f155f634b971a8263 100644
--- a/chrome/browser/invalidation/profile_invalidation_provider_factory.cc
+++ b/chrome/browser/invalidation/profile_invalidation_provider_factory.cc
@@ -95,7 +95,7 @@ void ProfileInvalidationProviderFactory::RegisterTestingFactory(
KeyedService* ProfileInvalidationProviderFactory::BuildServiceInstanceFor(
sky 2015/06/08 20:18:49 It seems weird not to change this too. Is there a
Ilya Sherman 2015/06/08 22:11:43 I'd like to change it, but would prefer to punt th
content::BrowserContext* context) const {
if (testing_factory_)
- return testing_factory_(context);
+ return testing_factory_(context).release();
#if defined(OS_ANDROID)
return new ProfileInvalidationProvider(scoped_ptr<InvalidationService>(

Powered by Google App Engine
This is Rietveld 408576698