Index: components/error_page/renderer/net_error_helper_core_unittest.cc |
diff --git a/components/error_page/renderer/net_error_helper_core_unittest.cc b/components/error_page/renderer/net_error_helper_core_unittest.cc |
index d73ea287ffa02fa67d7d6c3e18372c0033ba4a90..666d02d993409d3b4d4f843ceaef80e3574b425b 100644 |
--- a/components/error_page/renderer/net_error_helper_core_unittest.cc |
+++ b/components/error_page/renderer/net_error_helper_core_unittest.cc |
@@ -56,8 +56,8 @@ struct NavigationCorrection { |
bool is_porn; |
bool is_soft_porn; |
- base::Value* ToValue() const { |
- base::DictionaryValue* dict = new base::DictionaryValue(); |
+ std::unique_ptr<base::DictionaryValue> ToValue() const { |
+ std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); |
dict->SetString("correctionType", correction_type); |
dict->SetString("urlCorrection", url_correction); |
dict->SetString("clickType", click_type); |