Index: chrome/test/ui_test_utils.cc |
diff --git a/chrome/test/ui_test_utils.cc b/chrome/test/ui_test_utils.cc |
index eb992b6b94fb5c7600785348eec004436c3b88ca..8e11ebffa12e1a11d6be38ae2bce304b5dc07bf9 100644 |
--- a/chrome/test/ui_test_utils.cc |
+++ b/chrome/test/ui_test_utils.cc |
@@ -168,7 +168,7 @@ class DownloadsCompleteObserver : public DownloadManager::Observer, |
download_manager_->RemoveObserver(this); |
// waiting_ will have been set if not all downloads were complete on first |
- // pass below in SetDownloads(). |
+ // pass below in OnSearchDownloadsComplete(). |
if (waiting_) |
MessageLoopForUI::current()->Quit(); |
return true; |
@@ -186,10 +186,13 @@ class DownloadsCompleteObserver : public DownloadManager::Observer, |
// DownloadManager::Observer |
virtual void ModelChanged() { |
- download_manager_->GetDownloads(this, L""); |
+ download_manager_->download_history()->Search( |
+ string16(), |
+ NewCallback(this, |
+ &DownloadsCompleteObserver::OnSearchDownloadsComplete)); |
} |
- virtual void SetDownloads(std::vector<DownloadItem*>& downloads) { |
+ void OnSearchDownloadsComplete(std::vector<DownloadItem*> downloads) { |
downloads_ = downloads; |
if (CheckAllDownloadsComplete()) |
return; |