Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(837)

Unified Diff: content/public/test/download_test_observer.cc

Issue 10912183: Remove DownloadManager::GetDownloadItem in favor of GetDownload() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/test/download_test_observer.cc
diff --git a/content/public/test/download_test_observer.cc b/content/public/test/download_test_observer.cc
index c802b50e0d6ad5838814eb84439ff8815a40510d..e48167069bce7ae8ec5fde0d63ad1fb9a6494c7b 100644
--- a/content/public/test/download_test_observer.cc
+++ b/content/public/test/download_test_observer.cc
@@ -29,14 +29,14 @@ namespace {
// Fake user click on "Accept".
void AcceptDangerousDownload(scoped_refptr<DownloadManager> download_manager,
int32 download_id) {
- DownloadItem* download = download_manager->GetDownloadItem(download_id);
Randy Smith (Not in Mondays) 2012/09/11 19:02:21 Same comment as in DownloadsDOMHandler: I think we
benjhayden 2012/09/12 18:17:25 Done.
+ DownloadItem* download = download_manager->GetDownload(download_id);
download->DangerousDownloadValidated();
}
// Fake user click on "Deny".
void DenyDangerousDownload(scoped_refptr<DownloadManager> download_manager,
int32 download_id) {
- DownloadItem* download = download_manager->GetDownloadItem(download_id);
+ DownloadItem* download = download_manager->GetDownload(download_id);
ASSERT_TRUE(download->IsPartialDownload());
download->Cancel(true);
download->Delete(DownloadItem::DELETE_DUE_TO_USER_DISCARD);

Powered by Google App Engine
This is Rietveld 408576698