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

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

Issue 448143008: Move StringToUpperASCII and LowerCaseEqualsASCII to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_version_info.h" 8 #include "base/file_version_info.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 // If you have another chrome://memory tab open (which would be 374 // If you have another chrome://memory tab open (which would be
375 // committed), we don't want to count it either, so we also check the 375 // committed), we don't want to count it either, so we also check the
376 // last committed entry. 376 // last committed entry.
377 // 377 //
378 // Either the pending or last committed entries can be NULL. 378 // Either the pending or last committed entries can be NULL.
379 const NavigationEntry* pending_entry = 379 const NavigationEntry* pending_entry =
380 contents->GetController().GetPendingEntry(); 380 contents->GetController().GetPendingEntry();
381 const NavigationEntry* last_committed_entry = 381 const NavigationEntry* last_committed_entry =
382 contents->GetController().GetLastCommittedEntry(); 382 contents->GetController().GetLastCommittedEntry();
383 if ((last_committed_entry && 383 if ((last_committed_entry &&
384 LowerCaseEqualsASCII(last_committed_entry->GetVirtualURL().spec(), 384 base::LowerCaseEqualsASCII(
385 chrome::kChromeUIMemoryURL)) || 385 last_committed_entry->GetVirtualURL().spec(),
386 chrome::kChromeUIMemoryURL)) ||
386 (pending_entry && 387 (pending_entry &&
387 LowerCaseEqualsASCII(pending_entry->GetVirtualURL().spec(), 388 base::LowerCaseEqualsASCII(pending_entry->GetVirtualURL().spec(),
388 chrome::kChromeUIMemoryURL))) { 389 chrome::kChromeUIMemoryURL))) {
389 process.is_diagnostics = true; 390 process.is_diagnostics = true;
390 } 391 }
391 } 392 }
392 393
393 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) 394 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
394 if (process.pid == zygote_pid) { 395 if (process.pid == zygote_pid) {
395 process.process_type = content::PROCESS_TYPE_ZYGOTE; 396 process.process_type = content::PROCESS_TYPE_ZYGOTE;
396 } 397 }
397 #endif 398 #endif
398 } 399 }
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 632
632 if (swap_info_.orig_data_size > 0 && swap_info_.compr_data_size > 0) { 633 if (swap_info_.orig_data_size > 0 && swap_info_.compr_data_size > 0) {
633 UMA_HISTOGRAM_CUSTOM_COUNTS( 634 UMA_HISTOGRAM_CUSTOM_COUNTS(
634 "Memory.Swap.CompressionRatio", 635 "Memory.Swap.CompressionRatio",
635 swap_info_.orig_data_size / swap_info_.compr_data_size, 636 swap_info_.orig_data_size / swap_info_.compr_data_size,
636 1, 20, 20); 637 1, 20, 20);
637 } 638 }
638 } 639 }
639 640
640 #endif 641 #endif
OLDNEW
« no previous file with comments | « chrome/browser/local_discovery/device_description.cc ('k') | chrome/browser/net/firefox_proxy_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698