Index: chrome/browser/download/download_history.cc |
diff --git a/chrome/browser/download/download_history.cc b/chrome/browser/download/download_history.cc |
index 10b9be64b3dd0ead6539df9fa4dd8ba1413b590c..de66700df45dd93accec5ba5ebde1dae8433a624 100644 |
--- a/chrome/browser/download/download_history.cc |
+++ b/chrome/browser/download/download_history.cc |
@@ -128,6 +128,8 @@ history::DownloadRow GetDownloadRow( |
item->GetTargetFilePath(), |
item->GetUrlChain(), |
item->GetReferrerUrl(), |
+ item->GetMimeType(), |
+ item->GetOriginalMimeType(), |
item->GetStartTime(), |
item->GetEndTime(), |
item->GetETag(), |
@@ -145,7 +147,8 @@ history::DownloadRow GetDownloadRow( |
bool ShouldUpdateHistory(const history::DownloadRow* previous, |
const history::DownloadRow& current) { |
- // Ignore url, referrer, start_time, id, which don't change. |
+ // Ignore url, referrer, mime_type, original_mime_type, start_time, |
+ // id, db_handle, which don't change. |
return ((previous == NULL) || |
(previous->current_path != current.current_path) || |
(previous->target_path != current.target_path) || |
@@ -262,6 +265,8 @@ void DownloadHistory::QueryCallback(scoped_ptr<InfoVector> infos) { |
it->target_path, |
it->url_chain, |
it->referrer_url, |
+ it->mime_type, |
+ it->original_mime_type, |
it->start_time, |
it->end_time, |
it->etag, |