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

Side by Side Diff: chrome/browser/memory_details.cc

Issue 1172753003: Move LowerCaseEqualsASCII to base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util
Patch Set: Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/net/firefox_proxy_settings.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/memory_details.h" 5 #include "chrome/browser/memory_details.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 // If you have another chrome://memory tab open (which would be 336 // If you have another chrome://memory tab open (which would be
337 // committed), we don't want to count it either, so we also check the 337 // committed), we don't want to count it either, so we also check the
338 // last committed entry. 338 // last committed entry.
339 // 339 //
340 // Either the pending or last committed entries can be NULL. 340 // Either the pending or last committed entries can be NULL.
341 const NavigationEntry* pending_entry = 341 const NavigationEntry* pending_entry =
342 contents->GetController().GetPendingEntry(); 342 contents->GetController().GetPendingEntry();
343 const NavigationEntry* last_committed_entry = 343 const NavigationEntry* last_committed_entry =
344 contents->GetController().GetLastCommittedEntry(); 344 contents->GetController().GetLastCommittedEntry();
345 if ((last_committed_entry && 345 if ((last_committed_entry &&
346 LowerCaseEqualsASCII(last_committed_entry->GetVirtualURL().spec(), 346 base::LowerCaseEqualsASCII(
347 chrome::kChromeUIMemoryURL)) || 347 last_committed_entry->GetVirtualURL().spec(),
348 chrome::kChromeUIMemoryURL)) ||
348 (pending_entry && 349 (pending_entry &&
349 LowerCaseEqualsASCII(pending_entry->GetVirtualURL().spec(), 350 base::LowerCaseEqualsASCII(
350 chrome::kChromeUIMemoryURL))) { 351 pending_entry->GetVirtualURL().spec(),
352 chrome::kChromeUIMemoryURL))) {
351 process.is_diagnostics = true; 353 process.is_diagnostics = true;
352 } 354 }
353 } 355 }
354 356
355 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) 357 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
356 if (process.pid == zygote_pid) { 358 if (process.pid == zygote_pid) {
357 process.process_type = content::PROCESS_TYPE_ZYGOTE; 359 process.process_type = content::PROCESS_TYPE_ZYGOTE;
358 } 360 }
359 #endif 361 #endif
360 } 362 }
361 363
362 // Get rid of other Chrome processes that are from a different profile. 364 // Get rid of other Chrome processes that are from a different profile.
363 for (size_t index = 0; index < chrome_browser->processes.size(); 365 for (size_t index = 0; index < chrome_browser->processes.size();
364 index++) { 366 index++) {
365 if (chrome_browser->processes[index].process_type == 367 if (chrome_browser->processes[index].process_type ==
366 content::PROCESS_TYPE_UNKNOWN) { 368 content::PROCESS_TYPE_UNKNOWN) {
367 chrome_browser->processes.erase( 369 chrome_browser->processes.erase(
368 chrome_browser->processes.begin() + index); 370 chrome_browser->processes.begin() + index);
369 index--; 371 index--;
370 } 372 }
371 } 373 }
372 374
373 OnDetailsAvailable(); 375 OnDetailsAvailable();
374 } 376 }
OLDNEW
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/net/firefox_proxy_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698