Index: chromecast/crash/linux/crash_testing_utils.cc |
diff --git a/chromecast/crash/linux/crash_testing_utils.cc b/chromecast/crash/linux/crash_testing_utils.cc |
index 7b10a8633e984461c982d59f927badb728a9b4ed..19aed15178fc3aa4b0d86e5471d15dd259b8663e 100644 |
--- a/chromecast/crash/linux/crash_testing_utils.cc |
+++ b/chromecast/crash/linux/crash_testing_utils.cc |
@@ -63,7 +63,7 @@ int WriteLockFile(const std::string& path, base::ListValue* contents) { |
DCHECK(contents); |
std::string lockfile; |
- for (const base::Value* elem : *contents) { |
+ for (const auto& elem : *contents) { |
std::unique_ptr<std::string> dump_info = SerializeToJson(*elem); |
RCHECK(dump_info, -1, "Failed to serialize DumpInfo"); |
lockfile += *dump_info; |
@@ -95,8 +95,8 @@ bool FetchDumps(const std::string& lockfile_path, |
dumps->clear(); |
- for (base::Value* elem : *dump_list) { |
- std::unique_ptr<DumpInfo> dump = base::WrapUnique(new DumpInfo(elem)); |
+ for (const auto& elem : *dump_list) { |
+ std::unique_ptr<DumpInfo> dump(new DumpInfo(elem.get())); |
RCHECK(dump->valid(), false, "Invalid DumpInfo"); |
dumps->push_back(std::move(dump)); |
} |