Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(716)

Unified Diff: content/renderer/stats_collection_controller.cc

Issue 2792573002: Remove base::Value::CreateNullValue (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/stats_collection_controller.cc
diff --git a/content/renderer/stats_collection_controller.cc b/content/renderer/stats_collection_controller.cc
index c4f4fc9350a75b0ae90daedc60dbe9a25c45ab4e..a86aabeda00be1c65e78471c1e0d9d094c2e9e77 100644
--- a/content/renderer/stats_collection_controller.cc
+++ b/content/renderer/stats_collection_controller.cc
@@ -5,6 +5,7 @@
#include "content/renderer/stats_collection_controller.h"
#include "base/json/json_writer.h"
+#include "base/memory/ptr_util.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/statistics_recorder.h"
#include "base/strings/string_util.h"
@@ -55,13 +56,13 @@ void ConvertLoadTimeToJSON(
base::DictionaryValue item;
if (load_start_time.is_null()) {
- item.Set("load_start_ms", base::Value::CreateNullValue());
+ item.Set("load_start_ms", base::MakeUnique<base::Value>());
} else {
item.SetDouble("load_start_ms", (load_start_time - base::Time::UnixEpoch())
.InMillisecondsF());
}
if (load_start_time.is_null() || load_stop_time.is_null()) {
- item.Set("load_duration_ms", base::Value::CreateNullValue());
+ item.Set("load_duration_ms", base::MakeUnique<base::Value>());
} else {
item.SetDouble("load_duration_ms",
(load_stop_time - load_start_time).InMillisecondsF());
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698