Index: net/base/sdch_net_log_params.cc |
diff --git a/net/base/sdch_net_log_params.cc b/net/base/sdch_net_log_params.cc |
index a89117ecbacce6308febc7949ee0b3ed6611076d..49aba6d808911bb7062b0a2412b1de14ad716ebf 100644 |
--- a/net/base/sdch_net_log_params.cc |
+++ b/net/base/sdch_net_log_params.cc |
@@ -12,10 +12,10 @@ namespace net { |
base::Value* NetLogSdchResourceProblemCallback(SdchProblemCode problem, |
NetLogCaptureMode capture_mode) { |
- base::DictionaryValue* dict = new base::DictionaryValue(); |
+ scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); |
eroman
2015/05/21 14:43:22
The changes in this file are also covered by Evan'
|
dict->SetInteger("sdch_problem_code", problem); |
dict->SetInteger("net_error", ERR_FAILED); |
- return dict; |
+ return dict.release(); |
} |
base::Value* NetLogSdchDictionaryFetchProblemCallback( |
@@ -23,12 +23,12 @@ base::Value* NetLogSdchDictionaryFetchProblemCallback( |
const GURL& url, |
bool is_error, |
NetLogCaptureMode capture_mode) { |
- base::DictionaryValue* dict = new base::DictionaryValue(); |
+ scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); |
dict->SetInteger("sdch_problem_code", problem); |
dict->SetString("dictionary_url", url.spec()); |
if (is_error) |
dict->SetInteger("net_error", ERR_FAILED); |
- return dict; |
+ return dict.release(); |
} |
} // namespace net |