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

Unified Diff: chrome/browser/ui/app_list/arc/arc_app_unittest.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/ui/app_list/arc/arc_app_unittest.cc
diff --git a/chrome/browser/ui/app_list/arc/arc_app_unittest.cc b/chrome/browser/ui/app_list/arc/arc_app_unittest.cc
index 86d4af18ba888b3748e3611004a515fdde4fa974..69c0c8a5fe1795f04b4d8c11147e59924980b0c5 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_unittest.cc
+++ b/chrome/browser/ui/app_list/arc/arc_app_unittest.cc
@@ -519,7 +519,7 @@ class ArcDefaulAppForManagedUserTest : public ArcPlayStoreAppTest {
policy::ProfilePolicyConnectorFactory::GetForBrowserContext(profile());
connector->OverrideIsManagedForTesting(true);
profile()->GetTestingPrefService()->SetManagedPref(
- prefs::kArcEnabled, new base::Value(IsEnabledByPolicy()));
+ prefs::kArcEnabled, base::MakeUnique<base::Value>(IsEnabledByPolicy()));
ArcPlayStoreAppTest::OnBeforeArcTestSetup();
}

Powered by Google App Engine
This is Rietveld 408576698