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

Unified Diff: chrome/browser/ui/app_list/app_list_prefs_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: 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/ui/app_list/app_list_prefs_factory.cc
diff --git a/chrome/browser/ui/app_list/app_list_prefs_factory.cc b/chrome/browser/ui/app_list/app_list_prefs_factory.cc
index 80d8801a072a50273b8f5ef2eb78118a8dce804e..fcca1f05fdca2df8f04632a4abd7d690534b04ff 100644
--- a/chrome/browser/ui/app_list/app_list_prefs_factory.cc
+++ b/chrome/browser/ui/app_list/app_list_prefs_factory.cc
@@ -27,8 +27,8 @@ AppListPrefsFactory* AppListPrefsFactory::GetInstance() {
void AppListPrefsFactory::SetInstanceForTesting(
content::BrowserContext* context,
- AppListPrefs* prefs) {
- Associate(context, prefs);
+ scoped_ptr<AppListPrefs> prefs) {
+ Associate(context, prefs.Pass());
}
AppListPrefsFactory::AppListPrefsFactory()
« no previous file with comments | « chrome/browser/ui/app_list/app_list_prefs_factory.h ('k') | chrome/browser/ui/app_list/app_list_syncable_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698