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

Issue 7150018: Use GetVersion for Windows run-time version checks in preference to OperatingSystemVersionNumbers (Closed)

Created:
9 years, 6 months ago by Mark Mentovai
Modified:
9 years, 6 months ago
Reviewers:
wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, amit, brettw-cc_chromium.org
Visibility:
Public.

Description

Use base::win::GetVersion for Windows run-time version checks in preference to base::SysInfo::OperatingSystemVersionNumbers. The latter is just a harder-to-use wrapper around the former. BUG=86062 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89055

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -35 lines) Patch
M chrome/browser/fullscreen_win.cc View 1 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/renderer/localized_error.cc View 1 3 chunks +7 lines, -6 lines 0 comments Download
M chrome_frame/dll_redirector.cc View 1 3 chunks +2 lines, -7 lines 0 comments Download
M chrome_frame/test/dll_redirector_test.cc View 1 3 chunks +3 lines, -11 lines 0 comments Download
M net/socket/tcp_client_socket_win.cc View 1 2 chunks +2 lines, -5 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mark Mentovai
wtc, I chose you for net OWNERS approval. It’s also a pretty simple change, so ...
9 years, 6 months ago (2011-06-14 18:17:27 UTC) #1
wtc
LGTM. http://codereview.chromium.org/7150018/diff/1/chrome/renderer/localized_error.cc File chrome/renderer/localized_error.cc (right): http://codereview.chromium.org/7150018/diff/1/chrome/renderer/localized_error.cc#newcode457 chrome/renderer/localized_error.cc:457: } It seems that we should also have ...
9 years, 6 months ago (2011-06-14 18:35:30 UTC) #2
Mark Mentovai
9 years, 6 months ago (2011-06-14 19:22:07 UTC) #3
http://codereview.chromium.org/7150018/diff/1/chrome/renderer/localized_error.cc
File chrome/renderer/localized_error.cc (right):

http://codereview.chromium.org/7150018/diff/1/chrome/renderer/localized_error...
chrome/renderer/localized_error.cc:457: }
wtc wrote:
> It seems that we should also have a custom string for Windows 7.

This confused me too. Windows 7 uses
IDS_ERRORPAGES_SUMMARY_INTERNET_DISCONNECTED_PLATFORM, which is the initial
value of platform_string_id from line 444. The relevant definition in
chrome/app/generated_resources.grd is:

        <message name="IDS_ERRORPAGES_SUMMARY_INTERNET_DISCONNECTED_PLATFORM"
desc="Summary (platform dependent section) in the error page when the network
connection failed.  Describes how to get to the network Diagnostics screen under
Windows 7 and later.">
          Go to
          <ph name="BEGIN_BOLD">&lt;strong&gt;</ph>
          Start &gt; Control Panel &gt; Network and Internet &gt; Network and
Sharing Center &gt; Troubleshoot Problems (at the bottom) &gt; Internet
Connections.
          <ph name="END_BOLD">&lt;/strong&gt;</ph>
        </message>

This string will also be used for Windows Server 2008. I’m not sure if that’s
correct or if that release should use the Vista message or something else. I
also have no way to check this, so I left the Vista message for Vista and Vista
only, which is what the existing code did.

Powered by Google App Engine
This is Rietveld 408576698