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

Unified Diff: chrome/browser/ui/webui/options/preferences_browsertest.cc

Issue 2251263003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/webui/options/preferences_browsertest.cc
diff --git a/chrome/browser/ui/webui/options/preferences_browsertest.cc b/chrome/browser/ui/webui/options/preferences_browsertest.cc
index 6be1634467d068761c4338eb3b43583c8ddc2c7d..17a77531b95e89c72d477f7aab074f5edc1c298d 100644
--- a/chrome/browser/ui/webui/options/preferences_browsertest.cc
+++ b/chrome/browser/ui/webui/options/preferences_browsertest.cc
@@ -883,7 +883,7 @@ class ProxyPreferencesBrowserTest : public PreferencesBrowserTest {
policy::PolicyMap map;
map.Set(policy_name, policy::POLICY_LEVEL_MANDATORY, scope,
policy::POLICY_SOURCE_CLOUD,
- base::WrapUnique(new base::StringValue(onc_policy)), nullptr);
+ base::MakeUnique<base::StringValue>(onc_policy), nullptr);
policy_provider_.UpdateChromePolicy(map);
content::RunAllPendingInMessageLoop();
« no previous file with comments | « chrome/browser/ui/webui/options/home_page_overlay_handler.cc ('k') | chrome/browser/ui/webui/options/startup_pages_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698