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

Unified Diff: chrome/browser/search/contextual_search_policy_handler_android_unittest.cc

Issue 2334613003: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Changes from review by sky Created 4 years, 3 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/contextual_search_policy_handler_android_unittest.cc
diff --git a/chrome/browser/search/contextual_search_policy_handler_android_unittest.cc b/chrome/browser/search/contextual_search_policy_handler_android_unittest.cc
index bb149437fbe6ee71595d4d2610e12ba1f3fb4178..b0970c7a56a8fb577a4161dd91cbbe6de6069b1e 100644
--- a/chrome/browser/search/contextual_search_policy_handler_android_unittest.cc
+++ b/chrome/browser/search/contextual_search_policy_handler_android_unittest.cc
@@ -27,7 +27,7 @@ TEST(ContextualSearchPolicyHandlerAndroidTest, Enabled) {
PolicyMap policy;
policy.Set(key::kContextualSearchEnabled, POLICY_LEVEL_MANDATORY,
POLICY_SCOPE_USER, POLICY_SOURCE_PLATFORM,
- base::WrapUnique(new base::FundamentalValue(true)), nullptr);
+ base::MakeUnique<base::FundamentalValue>(true), nullptr);
PrefValueMap prefs;
ContextualSearchPolicyHandlerAndroid handler;
handler.ApplyPolicySettings(policy, &prefs);
@@ -42,7 +42,7 @@ TEST(ContextualSearchPolicyHandlerAndroidTest, Disabled) {
PolicyMap policy;
policy.Set(key::kContextualSearchEnabled, POLICY_LEVEL_MANDATORY,
POLICY_SCOPE_USER, POLICY_SOURCE_PLATFORM,
- base::WrapUnique(new base::FundamentalValue(false)), nullptr);
+ base::MakeUnique<base::FundamentalValue>(false), nullptr);
PrefValueMap prefs;
ContextualSearchPolicyHandlerAndroid handler;
handler.ApplyPolicySettings(policy, &prefs);

Powered by Google App Engine
This is Rietveld 408576698