Index: extensions/common/extension_l10n_util.cc |
diff --git a/extensions/common/extension_l10n_util.cc b/extensions/common/extension_l10n_util.cc |
index 4422ca344d260bc504df2fb0694e71943b11c6b0..ac0ac6415a194e218b78f11bbe160d9aba382f4f 100644 |
--- a/extensions/common/extension_l10n_util.cc |
+++ b/extensions/common/extension_l10n_util.cc |
@@ -15,6 +15,7 @@ |
#include "base/files/file_util.h" |
#include "base/json/json_file_value_serializer.h" |
#include "base/logging.h" |
+#include "base/memory/ptr_util.h" |
#include "base/strings/string_util.h" |
#include "base/strings/stringprintf.h" |
#include "base/strings/utf_string_conversions.h" |
@@ -92,7 +93,7 @@ bool LocalizeManifestListValue(const std::string& key, |
std::string result; |
if (list->GetString(i, &result)) { |
if (messages.ReplaceMessages(&result, error)) |
- list->Set(i, new base::Value(result)); |
+ list->Set(i, base::MakeUnique<base::Value>(result)); |
else |
ret = false; |
} |