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

Unified Diff: chrome/browser/search_engines/template_url_service_test_util.cc

Issue 2782553004: Move TestingPrefService to use unique_ptr<Value> (Closed)
Patch Set: comments Created 3 years, 9 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/search_engines/template_url_service_test_util.cc
diff --git a/chrome/browser/search_engines/template_url_service_test_util.cc b/chrome/browser/search_engines/template_url_service_test_util.cc
index 37f6429bdcf88593227dae8713b04a7e2bd2481e..722e2cc58d6cb3f6c68a197baf534cdb2f7b853c 100644
--- a/chrome/browser/search_engines/template_url_service_test_util.cc
+++ b/chrome/browser/search_engines/template_url_service_test_util.cc
@@ -50,7 +50,8 @@ void SetManagedDefaultSearchPreferences(const TemplateURLData& managed_data,
dict->SetBoolean(DefaultSearchManager::kDisabledByPolicy, !enabled);
profile->GetTestingPrefService()->SetManagedPref(
- DefaultSearchManager::kDefaultSearchProviderDataPrefName, dict.release());
+ DefaultSearchManager::kDefaultSearchProviderDataPrefName,
+ std::move(dict));
}
void RemoveManagedDefaultSearchPreferences(TestingProfile* profile) {
« no previous file with comments | « chrome/browser/profiles/profile_manager_unittest.cc ('k') | chrome/browser/search_engines/template_url_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698