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

Unified Diff: chrome/browser/password_manager/mock_password_store_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/password_manager/mock_password_store_service.cc
diff --git a/chrome/browser/password_manager/mock_password_store_service.cc b/chrome/browser/password_manager/mock_password_store_service.cc
index f3acb90de835ffbd50e164cdb4cf60364a65d24e..e33ea049f0fe47447985fad8e57935b5aacdda44 100644
--- a/chrome/browser/password_manager/mock_password_store_service.cc
+++ b/chrome/browser/password_manager/mock_password_store_service.cc
@@ -7,13 +7,13 @@
#include "components/password_manager/core/browser/mock_password_store.h"
// static
-KeyedService* MockPasswordStoreService::Build(
+scoped_ptr<KeyedService> MockPasswordStoreService::Build(
content::BrowserContext* /*profile*/) {
scoped_refptr<password_manager::PasswordStore> store(
new password_manager::MockPasswordStore);
if (!store.get() || !store->Init(syncer::SyncableService::StartSyncFlare()))
return nullptr;
- return new MockPasswordStoreService(store);
+ return scoped_ptr<KeyedService>(new MockPasswordStoreService(store));
}
MockPasswordStoreService::MockPasswordStoreService(

Powered by Google App Engine
This is Rietveld 408576698