Index: chrome/browser/browser_about_handler.cc |
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc |
index 6cc4491c5585fc4c5b58901945b1420ad1a0bd91..f4a5da694aaef682e09371e265d20dbc2ee2cfd6 100644 |
--- a/chrome/browser/browser_about_handler.cc |
+++ b/chrome/browser/browser_about_handler.cc |
@@ -620,17 +620,17 @@ void AboutMemoryHandler::OnDetailsAvailable() { |
ListValue* browsers = new ListValue(); |
root.Set(L"browsers", browsers); |
- ProcessData* browser_processes = processes(); |
+ const std::vector<ProcessData>& browser_processes = processes(); |
// Aggregate per-process data into browser summary data. |
std::wstring log_string; |
- for (int index = 0; index < MemoryDetails::MAX_BROWSERS; index++) { |
+ for (size_t index = 0; index < browser_processes.size(); index++) { |
if (browser_processes[index].processes.size() == 0) |
continue; |
// Sum the information for the processes within this browser. |
ProcessMemoryInformation aggregate; |
- ProcessMemoryInformationList::iterator iterator; |
+ ProcessMemoryInformationList::const_iterator iterator; |
iterator = browser_processes[index].processes.begin(); |
aggregate.pid = iterator->pid; |
aggregate.version = iterator->version; |