Index: chrome/browser/download/download_status_updater_win.cc |
diff --git a/chrome/browser/download/download_status_updater_win.cc b/chrome/browser/download/download_status_updater_win.cc |
index 47ed35b9c4fbeff61d41b64fc38a36fb4b589f7b..257b8548fee066291cc3a31209c22e8d7ad21676 100644 |
--- a/chrome/browser/download/download_status_updater_win.cc |
+++ b/chrome/browser/download/download_status_updater_win.cc |
@@ -11,7 +11,7 @@ |
#include "base/win/scoped_comptr.h" |
#include "base/win/windows_version.h" |
#include "chrome/browser/ui/browser.h" |
-#include "chrome/browser/ui/browser_iterator.h" |
+#include "chrome/browser/ui/browser_list.h" |
#include "chrome/browser/ui/browser_window.h" |
#include "ui/views/win/hwnd_util.h" |
@@ -39,8 +39,7 @@ void UpdateTaskbarProgressBar(int download_count, |
} |
// Iterate through all the browser windows, and draw the progress bar. |
- for (chrome::BrowserIterator it; !it.done(); it.Next()) { |
- Browser* browser = *it; |
+ for (auto* browser : *BrowserList::GetInstance()) { |
BrowserWindow* window = browser->window(); |
if (!window) |
continue; |