Index: device/nfc/nfc_ndef_record_unittest.cc |
diff --git a/device/nfc/nfc_ndef_record_unittest.cc b/device/nfc/nfc_ndef_record_unittest.cc |
index 2c105d98293f6ecaba0f074e67d51f110295a38d..b5704e590a42359dad4a8ec3f3cdbf69b05278a1 100644 |
--- a/device/nfc/nfc_ndef_record_unittest.cc |
+++ b/device/nfc/nfc_ndef_record_unittest.cc |
@@ -9,6 +9,7 @@ |
#include <memory> |
+#include "base/memory/ptr_util.h" |
#include "base/values.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -198,7 +199,7 @@ TEST(NfcNdefRecordTest, PopulateSmartPoster) { |
// Title value with missing required field. |
DictionaryValue* title_value = new DictionaryValue(); |
- list_value->Append(title_value); |
+ list_value->Append(base::WrapUnique(title_value)); |
EXPECT_FALSE(record->Populate(NfcNdefRecord::kTypeSmartPoster, &data)); |
EXPECT_FALSE(record->IsPopulated()); |