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

Unified Diff: chrome/browser/dom_ui/filebrowse_ui.cc

Issue 3027035: Speculatively fix ChromiumOS build. (Closed)
Patch Set: Created 10 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/filebrowse_ui.cc
diff --git a/chrome/browser/dom_ui/filebrowse_ui.cc b/chrome/browser/dom_ui/filebrowse_ui.cc
index 8bab7cd7c340ae3cab8c04935363a1feb2da8def..e277c16a238938d7d3aa7db93c8c1070fce28015 100644
--- a/chrome/browser/dom_ui/filebrowse_ui.cc
+++ b/chrome/browser/dom_ui/filebrowse_ui.cc
@@ -127,8 +127,6 @@ class FilebrowseHandler : public net::DirectoryLister::DirectoryListerDelegate,
// DownloadManager::Observer interface
virtual void ModelChanged();
- void OnSearchDownloadsComplete(std::vector<DownloadItem*> downloads);
-
// Callback for the "getRoots" message.
void HandleGetRoots(const Value* value);
@@ -967,12 +965,10 @@ void FilebrowseHandler::HandleGetDownloads(const Value* value) {
void FilebrowseHandler::ModelChanged() {
ClearDownloadItems();
- download_manager_->GetAllDownloads(this, FilePath());
-}
-void FilebrowseHandler::OnSearchDownloadsComplete(
- std::vector<DownloadItem*> downloads) {
- ClearDownloadItems();
+ std::vector<DownloadItem*> downloads;
+ download_manager_->GetAllDownloads(FilePath(), &downloads);
+
std::vector<DownloadItem*> new_downloads;
// Scan for any in progress downloads and add ourself to them as an observer.
for (DownloadList::iterator it = downloads.begin();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698