Index: chromeos/network/onc/onc_utils_unittest.cc |
diff --git a/chromeos/network/onc/onc_utils_unittest.cc b/chromeos/network/onc/onc_utils_unittest.cc |
index 6370a68507eccc4b562bf6cf28bd6f7eef4d3ec8..30053f146925911d3bae98a79b6e60d1366e941f 100644 |
--- a/chromeos/network/onc/onc_utils_unittest.cc |
+++ b/chromeos/network/onc/onc_utils_unittest.cc |
@@ -21,11 +21,11 @@ namespace chromeos { |
namespace { |
scoped_ptr<base::Value> ReadTestJson(const std::string& filename) { |
- base::Value* result = nullptr; |
base::FilePath path; |
+ scoped_ptr<base::Value> result; |
if (!test_utils::GetTestDataPath("network", filename, &path)) { |
NOTREACHED() << "Unable to get test file path for: " << filename; |
- return make_scoped_ptr(result); |
+ return result; |
} |
JSONFileValueDeserializer deserializer(path); |
deserializer.set_allow_trailing_comma(true); |
@@ -33,7 +33,7 @@ scoped_ptr<base::Value> ReadTestJson(const std::string& filename) { |
result = deserializer.Deserialize(nullptr, &error_message); |
CHECK(result != nullptr) << "Couldn't json-deserialize file: " << filename |
<< ": " << error_message; |
- return make_scoped_ptr(result); |
+ return result; |
} |
} // namespace |