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

Unified Diff: chrome/browser/signin/fake_gaia_cookie_manager_service.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/signin/fake_gaia_cookie_manager_service.cc
diff --git a/chrome/browser/signin/fake_gaia_cookie_manager_service.cc b/chrome/browser/signin/fake_gaia_cookie_manager_service.cc
index 4c767d06ba559b848b67f23b1316bfa87209d684..7d04cfb7be5bed702ed7c2692d4a08f6ed3899fe 100644
--- a/chrome/browser/signin/fake_gaia_cookie_manager_service.cc
+++ b/chrome/browser/signin/fake_gaia_cookie_manager_service.cc
@@ -111,12 +111,11 @@ void FakeGaiaCookieManagerService::SetListAccountsResponseTwoAccountsWithExpiry(
}
// static
-KeyedService* FakeGaiaCookieManagerService::Build(
+scoped_ptr<KeyedService> FakeGaiaCookieManagerService::Build(
content::BrowserContext* context) {
Profile* profile = Profile::FromBrowserContext(context);
- FakeGaiaCookieManagerService* service = new FakeGaiaCookieManagerService(
+ return make_scoped_ptr(new FakeGaiaCookieManagerService(
ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
GaiaConstants::kChromeSource,
- ChromeSigninClientFactory::GetForProfile(profile));
- return service;
+ ChromeSigninClientFactory::GetForProfile(profile)));
}

Powered by Google App Engine
This is Rietveld 408576698