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

Unified Diff: chrome/browser/ui/webui/chromeos/first_run/first_run_actor.cc

Issue 2957863005: Replace WrapUnique with MakeUnique (Closed)
Patch Set: fix syntax error Created 3 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/l10n_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/first_run/first_run_actor.cc
diff --git a/chrome/browser/ui/webui/chromeos/first_run/first_run_actor.cc b/chrome/browser/ui/webui/chromeos/first_run/first_run_actor.cc
index da8840f5ffa738e573c0c4a20775b2b5c69e6e82..1f22919bc9ddf6dad77651da7ce2171f55432b86 100644
--- a/chrome/browser/ui/webui/chromeos/first_run/first_run_actor.cc
+++ b/chrome/browser/ui/webui/chromeos/first_run/first_run_actor.cc
@@ -45,7 +45,7 @@ FirstRunActor::StepPosition& FirstRunActor::StepPosition::SetLeft(int left) {
std::unique_ptr<base::DictionaryValue> FirstRunActor::StepPosition::AsValue()
const {
- base::DictionaryValue* result = new base::DictionaryValue();
+ auto result = base::MakeUnique<base::DictionaryValue>();
if (top_ != kNoneValue)
result->SetInteger("top", top_);
if (right_ != kNoneValue)
@@ -54,7 +54,7 @@ std::unique_ptr<base::DictionaryValue> FirstRunActor::StepPosition::AsValue()
result->SetInteger("bottom", bottom_);
if (left_ != kNoneValue)
result->SetInteger("left", left_);
- return base::WrapUnique(result);
+ return result;
}
FirstRunActor::FirstRunActor()
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/l10n_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698