Index: content/browser/download/download_browsertest.cc |
diff --git a/content/browser/download/download_browsertest.cc b/content/browser/download/download_browsertest.cc |
index 9ce469454ad402e029f3253288e7c617a91d2d3d..b2b8710cc33af8fa8d95d7517893910f7bf74b28 100644 |
--- a/content/browser/download/download_browsertest.cc |
+++ b/content/browser/download/download_browsertest.cc |
@@ -270,10 +270,6 @@ void DownloadFileWithDelayFactory::WaitForSomeCallback() { |
} |
} |
-bool WasPersisted(DownloadItem* item) { |
- return item->IsPersisted(); |
-} |
- |
class CountingDownloadFile : public DownloadFileImpl { |
public: |
CountingDownloadFile( |
@@ -469,10 +465,6 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest, DownloadCancelled) { |
ASSERT_EQ(1u, downloads.size()); |
ASSERT_EQ(DownloadItem::IN_PROGRESS, downloads[0]->GetState()); |
- // Wait for it to be persisted. |
- DownloadUpdatedObserver( |
- downloads[0], base::Bind(&WasPersisted)).WaitForEvent(); |
- |
// Cancel the download and wait for download system quiesce. |
downloads[0]->Delete(DownloadItem::DELETE_DUE_TO_USER_DISCARD); |
scoped_refptr<DownloadTestFlushObserver> flush_observer( |
@@ -662,9 +654,6 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest, ShutdownInProgress) { |
ASSERT_EQ(1u, items.size()); |
EXPECT_EQ(DownloadItem::IN_PROGRESS, items[0]->GetState()); |
- // Wait for it to be persisted. |
- DownloadUpdatedObserver(items[0], base::Bind(&WasPersisted)).WaitForEvent(); |
- |
// Shutdown the download manager and make sure we get the right |
// notifications in the right order. |
StrictMock<MockDownloadItemObserver> item_observer; |