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

Unified Diff: content/browser/gpu/gpu_blacklist.cc

Issue 7065041: Fix OperatingSystemName and OperatingSystemVersion on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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/sys_info_posix.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_blacklist.cc
diff --git a/content/browser/gpu/gpu_blacklist.cc b/content/browser/gpu/gpu_blacklist.cc
index 6b0108a6417b738b895999467518532132a96439..0769f5d37962482beca1c5ce955c13c6650aeeaa 100644
--- a/content/browser/gpu/gpu_blacklist.cc
+++ b/content/browser/gpu/gpu_blacklist.cc
@@ -660,23 +660,10 @@ GpuFeatureFlags GpuBlacklist::DetermineGpuFeatureFlags(
os = GetOsType();
scoped_ptr<Version> my_os_version;
if (os_version == NULL) {
- std::string version_string;
-#if defined(OS_MACOSX)
- // Seems like base::SysInfo::OperatingSystemVersion() returns the wrong
- // version in MacOsx.
- int32 version_major, version_minor, version_bugfix;
- base::SysInfo::OperatingSystemVersionNumbers(
- &version_major, &version_minor, &version_bugfix);
- version_string = base::StringPrintf("%d.%d.%d",
- version_major,
- version_minor,
- version_bugfix);
-#else
- version_string = base::SysInfo::OperatingSystemVersion();
+ std::string version_string = base::SysInfo::OperatingSystemVersion();
size_t pos = version_string.find_first_not_of("0123456789.");
if (pos != std::string::npos)
version_string = version_string.substr(0, pos);
-#endif
my_os_version.reset(Version::GetVersionFromString(version_string));
os_version = my_os_version.get();
}
« no previous file with comments | « base/sys_info_posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698