Index: content/browser/gpu/gpu_data_manager_impl_private.cc |
diff --git a/content/browser/gpu/gpu_data_manager_impl_private.cc b/content/browser/gpu/gpu_data_manager_impl_private.cc |
index 8cf07545a6607e1d700198d5a811453cb01b49cf..aae1edac6b3115666b26ae2a6bfc98c0d15cce69 100644 |
--- a/content/browser/gpu/gpu_data_manager_impl_private.cc |
+++ b/content/browser/gpu/gpu_data_manager_impl_private.cc |
@@ -12,6 +12,7 @@ |
#include "base/bind.h" |
#include "base/bind_helpers.h" |
#include "base/command_line.h" |
+#include "base/memory/ptr_util.h" |
#include "base/metrics/field_trial.h" |
#include "base/metrics/histogram_macros.h" |
#include "base/metrics/sparse_histogram.h" |
@@ -1015,8 +1016,9 @@ void GpuDataManagerImplPrivate::ProcessCrashed( |
} |
} |
-base::ListValue* GpuDataManagerImplPrivate::GetLogMessages() const { |
- base::ListValue* value = new base::ListValue; |
+std::unique_ptr<base::ListValue> GpuDataManagerImplPrivate::GetLogMessages() |
+ const { |
+ auto value = base::MakeUnique<base::ListValue>(); |
for (size_t ii = 0; ii < log_messages_.size(); ++ii) { |
std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); |
dict->SetInteger("level", log_messages_[ii].level); |