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

Unified Diff: content/renderer/renderer_main.cc

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/renderer/renderer_main.cc
===================================================================
--- content/renderer/renderer_main.cc (revision 88826)
+++ content/renderer/renderer_main.cc (working copy)
@@ -35,7 +35,7 @@
#if defined(OS_MACOSX)
#include <Carbon/Carbon.h> // TISCreateInputSourceList
-#include "base/sys_info.h"
+#include "base/mac/mac_util.h"
#include "third_party/mach_override/mach_override.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
#endif // OS_MACOSX
@@ -52,14 +52,10 @@
}
void InstallFrameworkHacks() {
- int32 os_major, os_minor, os_bugfix;
- base::SysInfo::OperatingSystemVersionNumbers(
- &os_major, &os_minor, &os_bugfix);
-
// See http://crbug.com/31225
// TODO: Don't do this on newer OS X revisions that have a fix for
// http://openradar.appspot.com/radar?id=1156410
- if (os_major == 10 && os_minor >= 6) {
+ if (base::mac::IsOSSnowLeopardOrLater()) {
// Chinese Handwriting was introduced in 10.6. Since doing this override
// regresses page cycler memory usage on 10.5, don't do the unnecessary
// override there.

Powered by Google App Engine
This is Rietveld 408576698