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

Issue 6490024: New installation validator machinery to check the machine state.... (Closed)

Created:
9 years, 10 months ago by grt (UTC plus 2)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

New installation validator machinery to check the machine state. This CL contains the first two parts of the validator: 1. installer::InstallationValidator class, used by setup.exe to confirm that all is well following an installer operation. Violations are logged at ERROR level. 2. validate_installation.exe, used by humans to check the overall state of a machine. The third part, in which violations fire nonfatal test failures for use in other tests, will follow in a subsequent CL. BUG=none TEST=Run validate_installation.exe on machine(s) containing all conceivable permutations of Chrome and Chrome Frame, and see if it reports any violations. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=74819

Patch Set 1 : '' #

Total comments: 7

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1222 lines, -0 lines) Patch
M chrome/chrome.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_installer.gypi View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_installer_util.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/installer/installer_tools.gyp View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 2 3 chunks +11 lines, -0 lines 0 comments Download
A chrome/installer/tools/validate_installation.rc View 1 chunk +65 lines, -0 lines 0 comments Download
A chrome/installer/tools/validate_installation_main.cc View 1 chunk +189 lines, -0 lines 0 comments Download
A chrome/installer/tools/validate_installation_resource.h View 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/installer/util/installation_validator.h View 1 1 chunk +161 lines, -0 lines 0 comments Download
A chrome/installer/util/installation_validator.cc View 1 2 1 chunk +409 lines, -0 lines 0 comments Download
A chrome/installer/util/installation_validator_unittest.cc View 1 chunk +315 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
grt (UTC plus 2)
9 years, 10 months ago (2011-02-11 20:42:55 UTC) #1
tommi (sloooow) - chröme
lgtm! This cl is all sorts of excellent! http://codereview.chromium.org/6490024/diff/5001/chrome/chrome_installer.gypi File chrome/chrome_installer.gypi (right): http://codereview.chromium.org/6490024/diff/5001/chrome/chrome_installer.gypi#newcode72 chrome/chrome_installer.gypi:72: '<(DEPTH)/testing/gmock.gyp:gmock', ...
9 years, 10 months ago (2011-02-12 00:11:17 UTC) #2
amit
drive by bow to the awesomeness :) Thanks!
9 years, 10 months ago (2011-02-12 01:08:19 UTC) #3
grt (UTC plus 2)
Thanks for the comments, guys. http://codereview.chromium.org/6490024/diff/5001/chrome/chrome_installer.gypi File chrome/chrome_installer.gypi (right): http://codereview.chromium.org/6490024/diff/5001/chrome/chrome_installer.gypi#newcode72 chrome/chrome_installer.gypi:72: '<(DEPTH)/testing/gmock.gyp:gmock', On 2011/02/12 00:11:17, ...
9 years, 10 months ago (2011-02-14 04:05:20 UTC) #4
tommi (sloooow) - chröme
lgtm. On iostream, logging is what I was thinking of, so fprintf is cool. On ...
9 years, 10 months ago (2011-02-14 05:15:33 UTC) #5
robertshield
LGTM, nice work! http://codereview.chromium.org/6490024/diff/11001/chrome/installer/installer_tools.gyp File chrome/installer/installer_tools.gyp (right): http://codereview.chromium.org/6490024/diff/11001/chrome/installer/installer_tools.gyp#newcode3 chrome/installer/installer_tools.gyp:3: 'version_py': '../../chrome/tools/build/version.py', I vaguely remember gyp ...
9 years, 10 months ago (2011-02-14 14:09:11 UTC) #6
robertshield
LGTM, nice work!
9 years, 10 months ago (2011-02-14 14:09:13 UTC) #7
grt (UTC plus 2)
9 years, 10 months ago (2011-02-14 15:48:03 UTC) #8
Thanks.  I've uploaded the final rev that I'm committing.

http://codereview.chromium.org/6490024/diff/11001/chrome/installer/installer_...
File chrome/installer/installer_tools.gyp (right):

http://codereview.chromium.org/6490024/diff/11001/chrome/installer/installer_...
chrome/installer/installer_tools.gyp:3: 'version_py':
'../../chrome/tools/build/version.py',
On 2011/02/14 14:09:11, robertshield wrote:
> I vaguely remember gyp having a pre-defined variable called DEPTH that could
be
> used to make this kind of thing stable across folder moves. Something like
> 'version_py': '<(DEPTH>/chrome/tools/build/version.py',
> http://code.google.com/p/gyp/wiki/InputFormatReference

Cool.  Done.

http://codereview.chromium.org/6490024/diff/11001/chrome/installer/tools/vali...
File chrome/installer/tools/validate_installation_main.cc (right):

http://codereview.chromium.org/6490024/diff/11001/chrome/installer/tools/vali...
chrome/installer/tools/validate_installation_main.cc:63:
LOG_ASSERT(old_message_handler_ == NULL);
On 2011/02/14 14:09:11, robertshield wrote:
> does LOG_ASSERT DCHECK?

#define LOG_ASSERT(condition)  \
  LOG_IF(FATAL, !(condition)) << "Assert failed: " #condition ". "

http://codereview.chromium.org/6490024/diff/11001/chrome/installer/util/insta...
File chrome/installer/util/installation_validator.cc (right):

http://codereview.chromium.org/6490024/diff/11001/chrome/installer/util/insta...
chrome/installer/util/installation_validator.cc:59:
product_state.uninstall_command().HasSwitch(switches::kMultiInstall);
On 2011/02/14 14:09:11, robertshield wrote:
> is_multi_install appears unused?

Nice catch.  Thanks.

Powered by Google App Engine
This is Rietveld 408576698