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

Unified Diff: content/browser/renderer_host/backing_store_mac.mm

Issue 7144007: Improve and unify Mac OS X run-time version checks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/backing_store_mac.mm
===================================================================
--- content/browser/renderer_host/backing_store_mac.mm (revision 88826)
+++ content/browser/renderer_host/backing_store_mac.mm (working copy)
@@ -9,7 +9,6 @@
#include "base/logging.h"
#include "base/mac/mac_util.h"
#include "base/mac/scoped_cftyperef.h"
-#include "base/sys_info.h"
#include "content/browser/renderer_host/render_process_host.h"
#include "content/browser/renderer_host/render_widget_host.h"
#include "content/browser/renderer_host/render_widget_host_view.h"
@@ -31,10 +30,7 @@
// Returns whether this version of OS X has broken CGLayers, see
// http://crbug.com/45553 , comments 5 and 6.
bool NeedsLayerWorkaround() {
- int32 os_major, os_minor, os_bugfix;
- base::SysInfo::OperatingSystemVersionNumbers(
- &os_major, &os_minor, &os_bugfix);
- return os_major == 10 && os_minor == 5;
+ return base::mac::IsOSLeopard();
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698