Index: content/browser/download/download_net_log_parameters.cc |
diff --git a/content/browser/download/download_net_log_parameters.cc b/content/browser/download/download_net_log_parameters.cc |
index f09cfeb3435b8d2f697421d7d03c824b38445444..00a9d5dee77393c8b9ea9ad0bdbe5a5da2330a8f 100644 |
--- a/content/browser/download/download_net_log_parameters.cc |
+++ b/content/browser/download/download_net_log_parameters.cc |
@@ -106,9 +106,9 @@ base::Value* ItemInterruptedCallback(content::DownloadInterruptReason reason, |
return dict; |
} |
-base::Value* ItemFinishedCallback(int64 bytes_so_far, |
- const std::string* final_hash, |
- net::NetLog::LogLevel /* log_level */) { |
+base::Value* ItemCompletingCallback(int64 bytes_so_far, |
+ const std::string* final_hash, |
+ net::NetLog::LogLevel /* log_level */) { |
DictionaryValue* dict = new DictionaryValue(); |
dict->SetString("bytes_so_far", base::Int64ToString(bytes_so_far)); |
@@ -118,6 +118,15 @@ base::Value* ItemFinishedCallback(int64 bytes_so_far, |
return dict; |
} |
+base::Value* ItemFinishedCallback(bool auto_opened, |
+ net::NetLog::LogLevel /* log_level */) { |
+ DictionaryValue* dict = new DictionaryValue(); |
+ |
+ dict->SetString("auto_opened", auto_opened ? "yes" : "no"); |
+ |
+ return dict; |
+} |
+ |
base::Value* ItemCanceledCallback(int64 bytes_so_far, |
const std::string* hash_state, |
net::NetLog::LogLevel /* log_level */) { |