| Index: chrome/browser/download/save_page_browsertest.cc
 | 
| diff --git a/chrome/browser/download/save_page_browsertest.cc b/chrome/browser/download/save_page_browsertest.cc
 | 
| index 67ba540264c7f25e972b1f065888092133f07788..d1f0cf312a64795e3f30d1b4e388f78b0ba7a207 100644
 | 
| --- a/chrome/browser/download/save_page_browsertest.cc
 | 
| +++ b/chrome/browser/download/save_page_browsertest.cc
 | 
| @@ -96,7 +96,7 @@ class DownloadPersistedObserver : public DownloadHistory::Observer {
 | 
|                          const history::DownloadRow& info) override {
 | 
|      persisted_ = persisted_ || filter_.Run(item, info);
 | 
|      if (persisted_ && waiting_)
 | 
| -      base::MessageLoopForUI::current()->Quit();
 | 
| +      base::MessageLoopForUI::current()->QuitWhenIdle();
 | 
|    }
 | 
|  
 | 
|   private:
 | 
| @@ -134,7 +134,7 @@ class DownloadRemovedObserver : public DownloadPersistedObserver {
 | 
|    void OnDownloadsRemoved(const DownloadHistory::IdSet& ids) override {
 | 
|      removed_ = ids.find(download_id_) != ids.end();
 | 
|      if (removed_ && waiting_)
 | 
| -      base::MessageLoopForUI::current()->Quit();
 | 
| +      base::MessageLoopForUI::current()->QuitWhenIdle();
 | 
|    }
 | 
|  
 | 
|   private:
 | 
| @@ -230,14 +230,14 @@ class DownloadItemCreatedObserver : public DownloadManager::Observer {
 | 
|      items_seen_.push_back(item);
 | 
|  
 | 
|      if (waiting_)
 | 
| -      base::MessageLoopForUI::current()->Quit();
 | 
| +      base::MessageLoopForUI::current()->QuitWhenIdle();
 | 
|    }
 | 
|  
 | 
|    void ManagerGoingDown(DownloadManager* manager) override {
 | 
|      manager_->RemoveObserver(this);
 | 
|      manager_ = NULL;
 | 
|      if (waiting_)
 | 
| -      base::MessageLoopForUI::current()->Quit();
 | 
| +      base::MessageLoopForUI::current()->QuitWhenIdle();
 | 
|    }
 | 
|  
 | 
|    bool waiting_;
 | 
| 
 |