New checks for observer crash.
BUG=85408
Review URL: http://codereview.chromium.org/7787002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98642 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/download/download_manager.cc b/content/browser/download/download_manager.cc
index 85c9710..bc12c56 100644
--- a/content/browser/download/download_manager.cc
+++ b/content/browser/download/download_manager.cc
@@ -408,6 +408,8 @@
}
}
+ int64 state = download->state();
+ base::debug::Alias(&state);
if (ContainsKey(active_downloads_, download->id()))
CHECK_EQ(DownloadItem::IN_PROGRESS, download->state());
if (DownloadItem::IN_PROGRESS == download->state())
@@ -842,9 +844,9 @@
<< " download = " << download->DebugString(true);
// TODO(rdsmith): Remove after http://crbug.com/85408 resolved.
- CHECK(!ContainsKey(history_downloads_, download->db_handle()));
int64 largest_handle = largest_db_handle_in_history_;
base::debug::Alias(&largest_handle);
+ CHECK(!ContainsKey(history_downloads_, db_handle));
AddDownloadItemToHistory(download, db_handle);
@@ -998,9 +1000,9 @@
}
// TODO(rdsmith): Remove after http://crbug.com/85408 resolved.
- CHECK(!ContainsKey(history_downloads_, download->db_handle()));
int64 largest_handle = largest_db_handle_in_history_;
base::debug::Alias(&largest_handle);
+ CHECK(!ContainsKey(history_downloads_, db_handle));
AddDownloadItemToHistory(download, db_handle);