Index: chromecast/crash/linux/synchronized_minidump_manager.cc |
diff --git a/chromecast/crash/linux/synchronized_minidump_manager.cc b/chromecast/crash/linux/synchronized_minidump_manager.cc |
index 46d06f5354c7fab569b261489722c639b9a806c3..523916d349b896cd297d461697e2efae350b3e7d 100644 |
--- a/chromecast/crash/linux/synchronized_minidump_manager.cc |
+++ b/chromecast/crash/linux/synchronized_minidump_manager.cc |
@@ -292,7 +292,7 @@ int SynchronizedMinidumpManager::WriteFiles(const base::ListValue* dumps, |
DCHECK(metadata); |
std::string lockfile; |
- for (const base::Value* elem : *dumps) { |
+ for (const auto& elem : *dumps) { |
std::unique_ptr<std::string> dump_info = SerializeToJson(*elem); |
RCHECK(dump_info, -1); |
lockfile += *dump_info; |
@@ -364,8 +364,8 @@ void SynchronizedMinidumpManager::ReleaseLockFile() { |
ScopedVector<DumpInfo> SynchronizedMinidumpManager::GetDumps() { |
ScopedVector<DumpInfo> dumps; |
- for (const base::Value* elem : *dumps_) { |
- dumps.push_back(new DumpInfo(elem)); |
+ for (const auto& elem : *dumps_) { |
+ dumps.push_back(new DumpInfo(elem.get())); |
} |
return dumps; |