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

Unified Diff: webkit/plugins/npapi/webplugin_delegate_impl_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
« chrome/browser/bug_report_util.cc ('K') | « webkit/plugins/npapi/plugin_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/npapi/webplugin_delegate_impl_mac.mm
===================================================================
--- webkit/plugins/npapi/webplugin_delegate_impl_mac.mm (revision 88826)
+++ webkit/plugins/npapi/webplugin_delegate_impl_mac.mm (working copy)
@@ -12,12 +12,12 @@
#include <set>
#include "base/file_util.h"
+#include "base/mac/mac_util.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop.h"
#include "base/metrics/stats_counters.h"
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
-#include "base/sys_info.h"
#include "base/sys_string_conversions.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
#include "webkit/glue/webkit_glue.h"
@@ -1022,9 +1022,7 @@
static BOOL sImeSupported = NO;
static BOOL sHaveCheckedSupport = NO;
if (!sHaveCheckedSupport) {
- int32 major, minor, bugfix;
- base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
- sImeSupported = major > 10 || (major == 10 && minor > 5);
+ sImeSupported = base::mac::IsOSSnowLeopardOrLater();
sHaveCheckedSupport = YES;
}
return sImeSupported;
« chrome/browser/bug_report_util.cc ('K') | « webkit/plugins/npapi/plugin_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698