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

Unified Diff: chrome/browser/signin/fake_account_tracker_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: Finish renaming profile -> context 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_account_tracker_service.cc
diff --git a/chrome/browser/signin/fake_account_tracker_service.cc b/chrome/browser/signin/fake_account_tracker_service.cc
index 5fd0fcd56d299c18386c673fea229d45350a7d62..b9b38ab969960a412e6dc34b7a227f1d27453ff7 100644
--- a/chrome/browser/signin/fake_account_tracker_service.cc
+++ b/chrome/browser/signin/fake_account_tracker_service.cc
@@ -11,14 +11,14 @@
#include "components/signin/core/browser/profile_oauth2_token_service.h"
// static
-KeyedService* FakeAccountTrackerService::Build(
+scoped_ptr<KeyedService> FakeAccountTrackerService::Build(
content::BrowserContext* context) {
Profile* profile = Profile::FromBrowserContext(context);
FakeAccountTrackerService* service = new FakeAccountTrackerService();
service->Initialize(
ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
ChromeSigninClientFactory::GetForProfile(profile));
- return service;
+ return scoped_ptr<KeyedService>(service);
}
FakeAccountTrackerService::FakeAccountTrackerService() {}
« no previous file with comments | « chrome/browser/signin/fake_account_tracker_service.h ('k') | chrome/browser/signin/fake_gaia_cookie_manager_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698