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

Unified Diff: chrome/browser/policy/file_selection_dialogs_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/policy/file_selection_dialogs_policy_handler_unittest.cc
diff --git a/chrome/browser/policy/file_selection_dialogs_policy_handler_unittest.cc b/chrome/browser/policy/file_selection_dialogs_policy_handler_unittest.cc
index 47979ca311bbc2ed6c8e55dbdc6fce82cca98bfb..99dd83970ce9e875625dd6fed63a84dcadaec2a8 100644
--- a/chrome/browser/policy/file_selection_dialogs_policy_handler_unittest.cc
+++ b/chrome/browser/policy/file_selection_dialogs_policy_handler_unittest.cc
@@ -31,7 +31,7 @@ TEST_F(FileSelectionDialogsPolicyTest, Default) {
TEST_F(FileSelectionDialogsPolicyTest, EnableFileSelectionDialogs) {
policy_.Set(key::kAllowFileSelectionDialogs, POLICY_LEVEL_MANDATORY,
POLICY_SCOPE_USER, POLICY_SOURCE_CLOUD,
- base::WrapUnique(new base::FundamentalValue(true)), nullptr);
+ base::MakeUnique<base::FundamentalValue>(true), nullptr);
handler_.ApplyPolicySettings(policy_, &prefs_);
// Allowing file-selection dialogs should not influence the PromptForDownload
@@ -42,7 +42,7 @@ TEST_F(FileSelectionDialogsPolicyTest, EnableFileSelectionDialogs) {
TEST_F(FileSelectionDialogsPolicyTest, DisableFileSelectionDialogs) {
policy_.Set(key::kAllowFileSelectionDialogs, POLICY_LEVEL_MANDATORY,
POLICY_SCOPE_USER, POLICY_SOURCE_CLOUD,
- base::WrapUnique(new base::FundamentalValue(false)), nullptr);
+ base::MakeUnique<base::FundamentalValue>(false), nullptr);
handler_.ApplyPolicySettings(policy_, &prefs_);
// Disabling file-selection dialogs should disable the PromptForDownload pref.

Powered by Google App Engine
This is Rietveld 408576698