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); |
} |