| Index: components/json_schema/json_schema_validator_unittest_base.cc
|
| diff --git a/components/json_schema/json_schema_validator_unittest_base.cc b/components/json_schema/json_schema_validator_unittest_base.cc
|
| index 2c4c4e17d5204db08e3121fe476cc09d74b75c10..a1da991f9548b5ba4daccb8dda48862b3e0edaca 100644
|
| --- a/components/json_schema/json_schema_validator_unittest_base.cc
|
| +++ b/components/json_schema/json_schema_validator_unittest_base.cc
|
| @@ -13,6 +13,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/path_service.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "base/values.h"
|
| @@ -98,7 +99,7 @@ void JSONSchemaValidatorTestBase::TestComplex() {
|
| ExpectValid(TEST_SOURCE, instance.get(), schema.get(), NULL);
|
| instance->Remove(instance->GetSize() - 1, NULL);
|
| ExpectValid(TEST_SOURCE, instance.get(), schema.get(), NULL);
|
| - instance->Append(new base::DictionaryValue());
|
| + instance->Append(base::MakeUnique<base::DictionaryValue>());
|
| ExpectNotValid(TEST_SOURCE, instance.get(), schema.get(), NULL, "1",
|
| JSONSchemaValidator::FormatErrorMessage(
|
| JSONSchemaValidator::kInvalidType,
|
|
|