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

Unified Diff: chrome/browser/gpu_blacklist.cc

Issue 6346007: Refactor and improve gpu_info_collector: collect information on linux;... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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: chrome/browser/gpu_blacklist.cc
===================================================================
--- chrome/browser/gpu_blacklist.cc (revision 71329)
+++ chrome/browser/gpu_blacklist.cc (working copy)
@@ -370,7 +370,7 @@
if (gpu_info.progress() == GPUInfo::kUninitialized)
return flags;
scoped_ptr<Version> driver_version(
- Version::GetVersionFromString(WideToASCII(gpu_info.driver_version())));
+ Version::GetVersionFromString(gpu_info.driver_version()));
if (driver_version.get() == NULL)
return flags;
@@ -391,6 +391,9 @@
version_bugfix);
#else
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();

Powered by Google App Engine
This is Rietveld 408576698