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

Unified Diff: chrome/browser/signin/easy_unlock_app_manager_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: 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/easy_unlock_app_manager_unittest.cc
diff --git a/chrome/browser/signin/easy_unlock_app_manager_unittest.cc b/chrome/browser/signin/easy_unlock_app_manager_unittest.cc
index bab12ed577f3e49c19497b3a49f79d6dca1aed8f..89bf24b0ed95ba4ca34c0052185c9d8e18950372 100644
--- a/chrome/browser/signin/easy_unlock_app_manager_unittest.cc
+++ b/chrome/browser/signin/easy_unlock_app_manager_unittest.cc
@@ -69,8 +69,9 @@ class TestProcessManager : public extensions::ProcessManager {
DISALLOW_COPY_AND_ASSIGN(TestProcessManager);
};
-KeyedService* CreateTestProcessManager(content::BrowserContext* context) {
- return new TestProcessManager(context);
+scoped_ptr<KeyedService> CreateTestProcessManager(
+ content::BrowserContext* context) {
+ return make_scoped_ptr(new TestProcessManager(context));
}
// Observes extension registry for unload and load events (in that order) of an
@@ -262,9 +263,11 @@ class TestEventRouter : public extensions::EventRouter {
};
// TestEventRouter factory function
-KeyedService* TestEventRouterFactoryFunction(content::BrowserContext* context) {
- return new TestEventRouter(static_cast<Profile*>(context),
- extensions::ExtensionPrefs::Get(context));
+scoped_ptr<KeyedService> TestEventRouterFactoryFunction(
+ content::BrowserContext* context) {
+ return make_scoped_ptr(
+ new TestEventRouter(static_cast<Profile*>(context),
+ extensions::ExtensionPrefs::Get(context)));
}
class EasyUnlockAppManagerTest : public testing::Test {
« no previous file with comments | « chrome/browser/signin/account_reconcilor_unittest.cc ('k') | chrome/browser/signin/easy_unlock_service_unittest_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698