Index: chrome/test/chromedriver/performance_logger.cc |
diff --git a/chrome/test/chromedriver/performance_logger.cc b/chrome/test/chromedriver/performance_logger.cc |
index 23d94e91549fc7e2543ad803ae03ac4a04ef345b..8afa658be386a1a76f39a3d45b91583ce57a547c 100644 |
--- a/chrome/test/chromedriver/performance_logger.cc |
+++ b/chrome/test/chromedriver/performance_logger.cc |
@@ -9,6 +9,7 @@ |
#include "base/bind.h" |
#include "base/json/json_writer.h" |
+#include "base/memory/ptr_util.h" |
#include "base/strings/string_split.h" |
#include "base/strings/string_util.h" |
#include "base/values.h" |
@@ -126,7 +127,7 @@ void PerformanceLogger::AddLogEntry( |
base::DictionaryValue log_message_dict; |
log_message_dict.SetString("webview", webview); |
log_message_dict.SetString("message.method", method); |
- log_message_dict.Set("message.params", params.DeepCopy()); |
+ log_message_dict.Set("message.params", base::MakeUnique<base::Value>(params)); |
std::string log_message_json; |
base::JSONWriter::Write(log_message_dict, &log_message_json); |