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

Issue 1784623003: Add histograms to compare GetVersionEx() with VerQueryValue() of kernel32 (Closed)

Created:
4 years, 9 months ago by scottmg
Modified:
4 years, 9 months ago
CC:
chromium-reviews, vmpstr+watch_chromium.org, grt+watch_chromium.org, jam, darin-cc_chromium.org, asvitkine+watch_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add histograms to compare GetVersionEx() with VerQueryValue() of kernel32 Checking VerQueryValue() of kernel32 reports the "real" OS, rather than the potentially shimmed one that GetVersionEx() reports. Normally it's better to use GetVersionEx() because that'll determine the APIs that are available and how they behave. However, we'd like to know if there are a substantial percentage of users in compatibility mode, as there have been complaints of users seeing the "XP and Vista are no longer supported" infobar on Windows 7. R=asvitkine@chromium.org, robliao@chromium.org, wfh@chromium.org, nick@chromium.org BUG=581499 Committed: https://crrev.com/d68b1e1c89ab3d8055046883b1bf726084673959 Cr-Commit-Position: refs/heads/master@{#380793}

Patch Set 1 #

Total comments: 8

Patch Set 2 : . #

Total comments: 23

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 15

Patch Set 6 : . #

Total comments: 6

Patch Set 7 : . #

Patch Set 8 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -42 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M base/win/windows_version.h View 1 2 3 4 5 3 chunks +15 lines, -9 lines 0 comments Download
M base/win/windows_version.cc View 1 2 3 4 5 4 chunks +77 lines, -33 lines 0 comments Download
A base/win/windows_version_unittest.cc View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 3 chunks +33 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (8 generated)
scottmg
asvitkine: histograms.xml nick: content/browser/ robliao and wfh: base/win
4 years, 9 months ago (2016-03-09 22:38:22 UTC) #4
Will Harris
test? even a test that just compares the two versions would catch when we accidently ...
4 years, 9 months ago (2016-03-09 23:02:50 UTC) #5
scottmg
Yes, I manually tested on Win10 and it correctly reports when in compat mode for ...
4 years, 9 months ago (2016-03-10 00:41:31 UTC) #6
ncarter (slow)
https://codereview.chromium.org/1784623003/diff/20001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/1784623003/diff/20001/content/browser/browser_main_loop.cc#newcode1353 content/browser/browser_main_loop.cc:1353: void BrowserMainLoop::RecordWindowsVersionInformation() { Does this instrumentation belong in content ...
4 years, 9 months ago (2016-03-10 18:19:27 UTC) #7
ncarter (slow)
https://codereview.chromium.org/1784623003/diff/20001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/1784623003/diff/20001/content/browser/browser_main_loop.cc#newcode1353 content/browser/browser_main_loop.cc:1353: void BrowserMainLoop::RecordWindowsVersionInformation() { On 2016/03/10 18:19:27, ncarter wrote: > ...
4 years, 9 months ago (2016-03-10 18:21:40 UTC) #8
Will Harris
On 2016/03/10 18:21:40, ncarter wrote: > https://codereview.chromium.org/1784623003/diff/20001/content/browser/browser_main_loop.cc > File content/browser/browser_main_loop.cc (right): > > https://codereview.chromium.org/1784623003/diff/20001/content/browser/browser_main_loop.cc#newcode1353 > ...
4 years, 9 months ago (2016-03-10 18:22:36 UTC) #9
robliao
Windows code looks good in general. Some nits. https://codereview.chromium.org/1784623003/diff/20001/base/win/windows_version.cc File base/win/windows_version.cc (right): https://codereview.chromium.org/1784623003/diff/20001/base/win/windows_version.cc#newcode39 base/win/windows_version.cc:39: UINT ...
4 years, 9 months ago (2016-03-10 19:28:51 UTC) #10
grt (UTC plus 2)
drive-by https://codereview.chromium.org/1784623003/diff/20001/base/win/windows_version.cc File base/win/windows_version.cc (right): https://codereview.chromium.org/1784623003/diff/20001/base/win/windows_version.cc#newcode21 base/win/windows_version.cc:21: bool GetModuleVersionAndType(const base::FilePath& path, i propose avoiding the ...
4 years, 9 months ago (2016-03-10 19:43:44 UTC) #12
scottmg
Thanks https://codereview.chromium.org/1784623003/diff/20001/base/win/windows_version.cc File base/win/windows_version.cc (right): https://codereview.chromium.org/1784623003/diff/20001/base/win/windows_version.cc#newcode21 base/win/windows_version.cc:21: bool GetModuleVersionAndType(const base::FilePath& path, On 2016/03/10 19:43:44, grt ...
4 years, 9 months ago (2016-03-10 23:51:40 UTC) #13
grt (UTC plus 2)
lgtm w/ nits https://codereview.chromium.org/1784623003/diff/80001/base/win/windows_version.cc File base/win/windows_version.cc (right): https://codereview.chromium.org/1784623003/diff/80001/base/win/windows_version.cc#newcode63 base/win/windows_version.cc:63: base::win::Version GetVersionFromKernel32() { base::win:: here, too ...
4 years, 9 months ago (2016-03-11 16:13:42 UTC) #14
robliao
https://codereview.chromium.org/1784623003/diff/80001/base/win/windows_version.cc File base/win/windows_version.cc (right): https://codereview.chromium.org/1784623003/diff/80001/base/win/windows_version.cc#newcode9 base/win/windows_version.cc:9: #include "base/file_version_info_win.h" FileVersionInfoWin seems asks for more information than ...
4 years, 9 months ago (2016-03-11 17:04:47 UTC) #15
ncarter (slow)
lgtm
4 years, 9 months ago (2016-03-11 17:53:20 UTC) #16
Alexei Svitkine (slow)
lgtm % comments https://codereview.chromium.org/1784623003/diff/100001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc (right): https://codereview.chromium.org/1784623003/diff/100001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc#newcode154 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc:154: base::win::OSInfo::GetInstance()->Kernel32Version()); Nit: make a local var ...
4 years, 9 months ago (2016-03-11 20:16:51 UTC) #17
scottmg
https://codereview.chromium.org/1784623003/diff/80001/base/win/windows_version.cc File base/win/windows_version.cc (right): https://codereview.chromium.org/1784623003/diff/80001/base/win/windows_version.cc#newcode9 base/win/windows_version.cc:9: #include "base/file_version_info_win.h" On 2016/03/11 17:04:46, robliao wrote: > FileVersionInfoWin ...
4 years, 9 months ago (2016-03-11 22:44:27 UTC) #18
scottmg
+thakis for base/ build files.
4 years, 9 months ago (2016-03-11 22:45:13 UTC) #20
Nico
lgtm
4 years, 9 months ago (2016-03-11 22:47:33 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1784623003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1784623003/140001
4 years, 9 months ago (2016-03-11 22:53:22 UTC) #24
robliao
Non-owner LGTM
4 years, 9 months ago (2016-03-11 22:56:00 UTC) #25
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 9 months ago (2016-03-12 00:07:27 UTC) #26
commit-bot: I haz the power
4 years, 9 months ago (2016-03-12 00:08:51 UTC) #28
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/d68b1e1c89ab3d8055046883b1bf726084673959
Cr-Commit-Position: refs/heads/master@{#380793}

Powered by Google App Engine
This is Rietveld 408576698