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

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

Issue 474483002: Revert 289312 "Move StringToUpperASCII and LowerCaseEqualsASCII ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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 base::LowerCaseEqualsASCII( 384 LowerCaseEqualsASCII(last_committed_entry->GetVirtualURL().spec(),
385 last_committed_entry->GetVirtualURL().spec(), 385 chrome::kChromeUIMemoryURL)) ||
386 chrome::kChromeUIMemoryURL)) ||
387 (pending_entry && 386 (pending_entry &&
388 base::LowerCaseEqualsASCII(pending_entry->GetVirtualURL().spec(), 387 LowerCaseEqualsASCII(pending_entry->GetVirtualURL().spec(),
389 chrome::kChromeUIMemoryURL))) { 388 chrome::kChromeUIMemoryURL))) {
390 process.is_diagnostics = true; 389 process.is_diagnostics = true;
391 } 390 }
392 } 391 }
393 392
394 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) 393 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
395 if (process.pid == zygote_pid) { 394 if (process.pid == zygote_pid) {
396 process.process_type = content::PROCESS_TYPE_ZYGOTE; 395 process.process_type = content::PROCESS_TYPE_ZYGOTE;
397 } 396 }
398 #endif 397 #endif
399 } 398 }
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 631
633 if (swap_info_.orig_data_size > 0 && swap_info_.compr_data_size > 0) { 632 if (swap_info_.orig_data_size > 0 && swap_info_.compr_data_size > 0) {
634 UMA_HISTOGRAM_CUSTOM_COUNTS( 633 UMA_HISTOGRAM_CUSTOM_COUNTS(
635 "Memory.Swap.CompressionRatio", 634 "Memory.Swap.CompressionRatio",
636 swap_info_.orig_data_size / swap_info_.compr_data_size, 635 swap_info_.orig_data_size / swap_info_.compr_data_size,
637 1, 20, 20); 636 1, 20, 20);
638 } 637 }
639 } 638 }
640 639
641 #endif 640 #endif
OLDNEW
« no previous file with comments | « trunk/src/chrome/browser/local_discovery/device_description.cc ('k') | trunk/src/chrome/browser/net/firefox_proxy_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698