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

Unified Diff: chrome/browser/signin/easy_unlock_service_unittest_chromeos.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/signin/easy_unlock_service_unittest_chromeos.cc
diff --git a/chrome/browser/signin/easy_unlock_service_unittest_chromeos.cc b/chrome/browser/signin/easy_unlock_service_unittest_chromeos.cc
index 3d3f30839ebaf43e273bd50eb50cdb0efea20ead..af7f0104454218f8d9649cc8f8b89809daa2276a 100644
--- a/chrome/browser/signin/easy_unlock_service_unittest_chromeos.cc
+++ b/chrome/browser/signin/easy_unlock_service_unittest_chromeos.cc
@@ -235,8 +235,8 @@ class EasyUnlockServiceTest : public testing::Test {
}
void SetEasyUnlockAllowedPolicy(bool allowed) {
- profile_->GetTestingPrefService()->SetManagedPref(prefs::kEasyUnlockAllowed,
- new base::Value(allowed));
+ profile_->GetTestingPrefService()->SetManagedPref(
+ prefs::kEasyUnlockAllowed, base::MakeUnique<base::Value>(allowed));
}
void set_is_bluetooth_adapter_present(bool is_present) {
« no previous file with comments | « chrome/browser/search_engines/template_url_service_unittest.cc ('k') | chrome/browser/ui/app_list/arc/arc_app_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698