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

Unified Diff: base/process/memory_mac.mm

Issue 1849343003: mac: Remove IsOSSnowLeopard(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/memory/shared_memory_mac_unittest.cc ('k') | chrome/browser/apps/app_window_interactive_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/memory_mac.mm
diff --git a/base/process/memory_mac.mm b/base/process/memory_mac.mm
index 1e1a1ba536fb008f4e3dd87cae71efeca318bbb5..b70e37092bc61867aadf5f4594c04989b87d95b6 100644
--- a/base/process/memory_mac.mm
+++ b/base/process/memory_mac.mm
@@ -252,16 +252,9 @@ bool CanGetContextForCFAllocator() {
}
CFAllocatorContext* ContextForCFAllocator(CFAllocatorRef allocator) {
- if (base::mac::IsOSSnowLeopard()) {
- ChromeCFAllocatorLeopards* our_allocator =
- const_cast<ChromeCFAllocatorLeopards*>(
- reinterpret_cast<const ChromeCFAllocatorLeopards*>(allocator));
- return &our_allocator->_context;
- } else if (base::mac::IsOSLion() ||
- base::mac::IsOSMountainLion() ||
- base::mac::IsOSMavericks() ||
- base::mac::IsOSYosemite() ||
- base::mac::IsOSElCapitan()) {
+ if (base::mac::IsOSLion() || base::mac::IsOSMountainLion() ||
+ base::mac::IsOSMavericks() || base::mac::IsOSYosemite() ||
+ base::mac::IsOSElCapitan()) {
ChromeCFAllocatorLions* our_allocator =
const_cast<ChromeCFAllocatorLions*>(
reinterpret_cast<const ChromeCFAllocatorLions*>(allocator));
« no previous file with comments | « base/memory/shared_memory_mac_unittest.cc ('k') | chrome/browser/apps/app_window_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698