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

Unified Diff: components/signin/core/browser/account_tracker_service.cc

Issue 2287733002: Switch //components away from base::ListValue::Append(Value*) overload. (Closed)
Patch Set: Test fix 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: components/signin/core/browser/account_tracker_service.cc
diff --git a/components/signin/core/browser/account_tracker_service.cc b/components/signin/core/browser/account_tracker_service.cc
index e7fea611b2b1f427e795435aab0235967a9f59e6..84f522a7eba699f59693d2a541f2a8fb1aaac0ee 100644
--- a/components/signin/core/browser/account_tracker_service.cc
+++ b/components/signin/core/browser/account_tracker_service.cc
@@ -9,6 +9,7 @@
#include "base/callback.h"
#include "base/command_line.h"
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "base/profiler/scoped_tracker.h"
#include "base/strings/string_split.h"
#include "base/strings/utf_string_conversions.h"
@@ -405,7 +406,7 @@ void AccountTrackerService::SaveToPrefs(const AccountState& state) {
if (!dict) {
dict = new base::DictionaryValue();
- update->Append(dict); // |update| takes ownership.
+ update->Append(base::WrapUnique(dict));
dict->SetString(kAccountKeyPath, account_id_16);
}

Powered by Google App Engine
This is Rietveld 408576698