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

Unified Diff: components/user_manager/known_user.cc

Issue 2392693002: Rewrite simple uses of base::ListValue::Append(base::Value*) on CrOS. (Closed)
Patch Set: headers Created 4 years, 2 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: components/user_manager/known_user.cc
diff --git a/components/user_manager/known_user.cc b/components/user_manager/known_user.cc
index 19fc5d97fd76f62098c94d85c2f93fa62becd5e2..8ad90614b9f3444673b46fb8a9fdb69ee8a2a7a8 100644
--- a/components/user_manager/known_user.cc
+++ b/components/user_manager/known_user.cc
@@ -7,6 +7,7 @@
#include <stddef.h>
#include <memory>
+#include <utility>
#include "base/logging.h"
#include "base/values.h"
@@ -137,7 +138,7 @@ void UpdatePrefs(const AccountId& account_id,
std::unique_ptr<base::DictionaryValue> new_value(new base::DictionaryValue());
new_value->MergeDictionary(&values);
UpdateIdentity(account_id, *new_value);
- update->Append(new_value.release());
+ update->Append(std::move(new_value));
}
bool GetStringPref(const AccountId& account_id,

Powered by Google App Engine
This is Rietveld 408576698