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

Unified Diff: chrome/browser/profiles/incognito_mode_policy_handler_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/profiles/incognito_mode_policy_handler_unittest.cc
diff --git a/chrome/browser/profiles/incognito_mode_policy_handler_unittest.cc b/chrome/browser/profiles/incognito_mode_policy_handler_unittest.cc
index 35ae29a3a2b0dae7bbeebcfbedb57b2a7e57d2cd..34b5f81b422536bda8cdf252354d8798401aa91e 100644
--- a/chrome/browser/profiles/incognito_mode_policy_handler_unittest.cc
+++ b/chrome/browser/profiles/incognito_mode_policy_handler_unittest.cc
@@ -37,14 +37,14 @@ class IncognitoModePolicyHandlerTest
if (incognito_enabled != INCOGNITO_ENABLED_UNKNOWN) {
policy.Set(key::kIncognitoEnabled, POLICY_LEVEL_MANDATORY,
POLICY_SCOPE_USER, POLICY_SOURCE_CLOUD,
- base::WrapUnique(new base::FundamentalValue(
- incognito_enabled == INCOGNITO_ENABLED_TRUE)),
+ base::MakeUnique<base::FundamentalValue>(
+ incognito_enabled == INCOGNITO_ENABLED_TRUE),
nullptr);
}
if (availability >= 0) {
policy.Set(key::kIncognitoModeAvailability, POLICY_LEVEL_MANDATORY,
POLICY_SCOPE_USER, POLICY_SOURCE_CLOUD,
- base::WrapUnique(new base::FundamentalValue(availability)),
+ base::MakeUnique<base::FundamentalValue>(availability),
nullptr);
}
UpdateProviderPolicy(policy);

Powered by Google App Engine
This is Rietveld 408576698