Index: net/filter/sdch_filter.cc |
diff --git a/net/filter/sdch_filter.cc b/net/filter/sdch_filter.cc |
index 858e101fe34976169942cdceb20b7d5a47bcbe58..5b0ff962644a5b937a5ee1dd96dc2d761e515c2a 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 |
@@ -340,7 +340,7 @@ Filter::FilterStatus SdchFilter::ReadFilteredData(char* dest_buffer, |
} |
filter_context_.GetNetLog().AddEvent( |
NetLog::TYPE_SDCH_RESPONSE_CORRUPTION_DETECTION, |
- base::Bind(&NetLogSdchResponseCorruptionDetectionCallback, cause, |
+ base::Bind(NetLogSdchResponseCorruptionDetectionCallback, cause, |
filter_context_.IsCachedContent())); |
if (decoding_status_ == PASS_THROUGH) { |
@@ -563,7 +563,7 @@ void SdchFilter::LogSdchProblem(SdchProblemCode problem) { |
SdchManager::SdchErrorRecovery(problem); |
filter_context_.GetNetLog().AddEvent( |
NetLog::TYPE_SDCH_DECODING_ERROR, |
- base::Bind(&NetLogSdchResourceProblemCallback, problem)); |
+ base::Bind(NetLogSdchResourceProblemCallback, problem)); |
} |
} // namespace net |