| Index: chrome/browser/safe_browsing/safe_browsing_navigation_observer_browsertest.cc
|
| diff --git a/chrome/browser/safe_browsing/safe_browsing_navigation_observer_browsertest.cc b/chrome/browser/safe_browsing/safe_browsing_navigation_observer_browsertest.cc
|
| index daab3f73e34f5ceab6d6d61796b82fccec502cd1..1c65a291ccba3f67535c9539894eeebf0d7cf659 100644
|
| --- a/chrome/browser/safe_browsing/safe_browsing_navigation_observer_browsertest.cc
|
| +++ b/chrome/browser/safe_browsing/safe_browsing_navigation_observer_browsertest.cc
|
| @@ -225,6 +225,8 @@ class SBNavigationObserverBrowserTest : public InProcessBrowserTest {
|
| content::DownloadManager* manager =
|
| content::BrowserContext::GetDownloadManager(browser()->profile());
|
| manager->GetAllDownloads(&download_items);
|
| + if (download_items.empty())
|
| + DownloadItemCreatedObserver(manager).WaitForDownloadItem(&download_items);
|
| EXPECT_EQ(1U, download_items.size());
|
| return download_items[0];
|
| }
|
|
|