Index: chrome/browser/performance_monitor/performance_monitor.cc |
diff --git a/chrome/browser/performance_monitor/performance_monitor.cc b/chrome/browser/performance_monitor/performance_monitor.cc |
index 66de415383a1de1ae91ffe66f70c51b0ad44ab52..deff1a04f629f75d8b3854056e3aa0ce5754c965 100644 |
--- a/chrome/browser/performance_monitor/performance_monitor.cc |
+++ b/chrome/browser/performance_monitor/performance_monitor.cc |
@@ -23,7 +23,7 @@ |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/profiles/profile_manager.h" |
#include "chrome/browser/ui/browser.h" |
-#include "chrome/browser/ui/browser_list.h" |
+#include "chrome/browser/ui/browser_iterator.h" |
#include "chrome/common/chrome_notification_types.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/chrome_version_info.h" |
@@ -398,10 +398,8 @@ void PerformanceMonitor::UpdateLiveProfiles() { |
scoped_ptr<std::set<std::string> > active_profiles( |
new std::set<std::string>()); |
- for (BrowserList::const_iterator iter = BrowserList::begin(); |
- iter != BrowserList::end(); ++iter) { |
- active_profiles->insert((*iter)->profile()->GetDebugName()); |
- } |
+ for (chrome::BrowserIterator it; !it.done(); it.Next()) |
+ active_profiles->insert(it->profile()->GetDebugName()); |
BrowserThread::PostBlockingPoolSequencedTask( |
Database::kDatabaseSequenceToken, |