Index: net/filter/sdch_filter.cc |
diff --git a/net/filter/sdch_filter.cc b/net/filter/sdch_filter.cc |
index 858e101fe34976169942cdceb20b7d5a47bcbe58..f2dacf28107e014f2dd4273068cad8280b6f7273 100644 |
--- a/net/filter/sdch_filter.cc |
+++ b/net/filter/sdch_filter.cc |
@@ -90,14 +90,14 @@ const char* ResponseCorruptionDetectionCauseToString( |
return cause_string; |
} |
-base::Value* NetLogSdchResponseCorruptionDetectionCallback( |
+scoped_ptr<base::Value> NetLogSdchResponseCorruptionDetectionCallback( |
ResponseCorruptionDetectionCause cause, |
bool cached, |
NetLogCaptureMode capture_mode) { |
- base::DictionaryValue* dict = new base::DictionaryValue(); |
+ scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); |
dict->SetString("cause", ResponseCorruptionDetectionCauseToString(cause)); |
dict->SetBoolean("cached", cached); |
- return dict; |
+ return dict.Pass(); |
} |
} // namespace |