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

Issue 2507753002: Install the chrome event log provider together with the browser. (Closed)

Created:
4 years, 1 month ago by pastarmovj
Modified:
3 years, 11 months ago
CC:
chromium-reviews, grt+watch_chromium.org, pennymac+watch_chromium.org, wfh+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Install the chrome event log provider together with the browser. The dll will always be present but only registered when running a system install because we need access to the LOCAL_MACHINE hive. BUG=642115 TEST=setup_util_unittest,mini_installer,manual Committed: https://crrev.com/e064666e44e4f3821559ce188cfaf4d696dd4668 Cr-Commit-Position: refs/heads/master@{#439788}

Patch Set 1 : . #

Total comments: 20

Patch Set 2 : Address comments. #

Total comments: 16

Patch Set 3 : Address comments. #

Patch Set 4 : Add tests. #

Patch Set 5 : Fix wrong append call. #

Total comments: 20

Patch Set 6 : Fix formatting. #

Total comments: 8

Patch Set 7 : Address comments. #

Total comments: 2

Patch Set 8 : Make the provider registry key track the product branding. #

Total comments: 10

Patch Set 9 : Address comments. #

Total comments: 2

Patch Set 10 : Clean-up InstallFullName. #

Patch Set 11 : Fix prop files. #

Patch Set 12 : Fix RegisterEventLogProvider unit test. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -5 lines) Patch
M chrome/installer/mini_installer/chrome.release View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/installer/setup/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/setup/install.cc View 1 2 3 4 5 6 7 4 chunks +11 lines, -4 lines 0 comments Download
M chrome/installer/setup/setup_util.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/installer/setup/setup_util.cc View 1 2 3 4 5 6 7 8 9 4 chunks +72 lines, -0 lines 0 comments Download
M chrome/installer/setup/setup_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +42 lines, -0 lines 0 comments Download
M chrome/installer/setup/uninstall.cc View 1 1 chunk +4 lines, -0 lines 1 comment Download
M chrome/test/mini_installer/config/chrome_system_installed.prop View 1 2 3 4 5 6 7 8 9 10 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/test/mini_installer/config/chrome_system_updated.prop View 1 2 3 4 5 6 7 8 9 10 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/tools/build/win/FILES.cfg View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (17 generated)
pastarmovj
Hi Greg, this is my attempt at adding the eventlog provider to the installer. Please ...
4 years, 1 month ago (2016-11-16 13:56:13 UTC) #3
grt (UTC plus 2)
Looks pretty good. I think the new file should also be mentioned in chrome/tools/build/win/FILES.cfg so ...
4 years, 1 month ago (2016-11-16 15:04:44 UTC) #5
Sébastien Marchand
Adding this file to FILES.cfg should be enough! https://codereview.chromium.org/2507753002/diff/20001/chrome/installer/mini_installer/chrome.release File chrome/installer/mini_installer/chrome.release (right): https://codereview.chromium.org/2507753002/diff/20001/chrome/installer/mini_installer/chrome.release#newcode28 chrome/installer/mini_installer/chrome.release:28: kasko.dll: ...
4 years, 1 month ago (2016-11-16 16:46:29 UTC) #6
grt (UTC plus 2)
On 2016/11/16 16:46:29, Sébastien Marchand wrote: > Adding this file to FILES.cfg should be enough! ...
4 years, 1 month ago (2016-11-16 16:58:30 UTC) #7
Sébastien Marchand
I think that something like this should be enough: { 'filename': 'eventlog_provider.dll', 'buildtype': ['dev', 'official'], ...
4 years, 1 month ago (2016-11-16 17:08:30 UTC) #9
Michael Moss
On 2016/11/16 17:08:30, Sébastien Marchand wrote: > I think that something like this should be ...
4 years, 1 month ago (2016-11-16 17:27:54 UTC) #10
pastarmovj
Thanks for all the great comments! :) Btw what would be your suggestion for testing ...
4 years, 1 month ago (2016-11-17 15:34:43 UTC) #11
grt (UTC plus 2)
Looking pretty good. A unit-test would be a good start. Please also add to chrome/test/mini_installer/config/chrome_system_installed.prop ...
4 years, 1 month ago (2016-11-18 11:38:12 UTC) #12
grt (UTC plus 2)
https://codereview.chromium.org/2507753002/diff/40001/chrome/installer/setup/setup_util.cc File chrome/installer/setup/setup_util.cc (right): https://codereview.chromium.org/2507753002/diff/40001/chrome/installer/setup/setup_util.cc#newcode55 chrome/installer/setup/setup_util.cc:55: L"\\SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\chrome"; On 2016/11/18 11:38:12, grt (UTC plus 1) wrote: ...
4 years, 1 month ago (2016-11-18 12:10:34 UTC) #13
pastarmovj
Thanks for the hints. I made some tests which actually caught a few issues! :) ...
4 years, 1 month ago (2016-11-21 15:48:41 UTC) #16
grt (UTC plus 2)
looking good. still some issues to be ironed out, but we're going in the right ...
4 years, 1 month ago (2016-11-22 10:41:26 UTC) #17
pastarmovj
On 2016/11/21 15:48:41, pastarmovj wrote: > Thanks for the hints. I made some tests which ...
4 years, 1 month ago (2016-11-22 10:49:14 UTC) #18
grt (UTC plus 2)
On 2016/11/22 10:49:14, pastarmovj wrote: > Manual verification in a VM was successful. Both installing ...
4 years, 1 month ago (2016-11-22 11:39:46 UTC) #20
pastarmovj
PTAL. Thanks! PS. The dll is held open by a svchost process hosting the EventLog ...
4 years ago (2016-11-23 14:27:26 UTC) #22
grt (UTC plus 2)
Looks good. Just a few minor comments plus the name collision to iron out. https://codereview.chromium.org/2507753002/diff/40001/chrome/installer/setup/setup_util.cc ...
4 years ago (2016-11-24 07:49:34 UTC) #23
pastarmovj
PTAL. I added a bug to track the investigation of how to make the branding ...
4 years ago (2016-11-24 09:51:09 UTC) #25
grt (UTC plus 2)
i think it's best to address the branding issue now. otherwise, you'll need to add ...
4 years ago (2016-11-24 14:26:13 UTC) #26
pastarmovj
Now that we have per channel SYSLOG I think I am done with this CL. ...
4 years ago (2016-12-08 15:33:55 UTC) #27
grt (UTC plus 2)
On 2016/12/08 15:33:55, pastarmovj wrote: > Now that we have per channel SYSLOG I think ...
4 years ago (2016-12-13 13:21:41 UTC) #28
grt (UTC plus 2)
https://codereview.chromium.org/2507753002/diff/240001/chrome/installer/setup/setup_util.cc File chrome/installer/setup/setup_util.cc (right): https://codereview.chromium.org/2507753002/diff/240001/chrome/installer/setup/setup_util.cc#newcode36 chrome/installer/setup/setup_util.cc:36: #include "chrome/install_static/install_details.h" remove this for now https://codereview.chromium.org/2507753002/diff/240001/chrome/installer/setup/setup_util.cc#newcode54 chrome/installer/setup/setup_util.cc:54: // ...
4 years ago (2016-12-13 13:21:52 UTC) #29
pastarmovj
https://codereview.chromium.org/2507753002/diff/240001/chrome/installer/setup/setup_util.cc File chrome/installer/setup/setup_util.cc (right): https://codereview.chromium.org/2507753002/diff/240001/chrome/installer/setup/setup_util.cc#newcode36 chrome/installer/setup/setup_util.cc:36: #include "chrome/install_static/install_details.h" On 2016/12/13 13:21:52, grt (UTC plus 1) ...
4 years ago (2016-12-16 12:44:16 UTC) #30
grt (UTC plus 2)
lgtm w/ a nit https://codereview.chromium.org/2507753002/diff/260001/chrome/installer/setup/setup_util.cc File chrome/installer/setup/setup_util.cc (right): https://codereview.chromium.org/2507753002/diff/260001/chrome/installer/setup/setup_util.cc#newcode60 chrome/installer/setup/setup_util.cc:60: base::string16 reg_path(kEventLogProvidersRegPath); remove
4 years ago (2016-12-16 13:03:58 UTC) #31
pastarmovj
https://codereview.chromium.org/2507753002/diff/260001/chrome/installer/setup/setup_util.cc File chrome/installer/setup/setup_util.cc (right): https://codereview.chromium.org/2507753002/diff/260001/chrome/installer/setup/setup_util.cc#newcode60 chrome/installer/setup/setup_util.cc:60: base::string16 reg_path(kEventLogProvidersRegPath); On 2016/12/16 13:03:58, grt (UTC plus 1) ...
4 years ago (2016-12-16 14:58:12 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2507753002/280001
4 years ago (2016-12-16 14:58:35 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/336151)
4 years ago (2016-12-16 15:54:22 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2507753002/320001
4 years ago (2016-12-20 13:06:53 UTC) #40
commit-bot: I haz the power
Committed patchset #12 (id:320001)
4 years ago (2016-12-20 13:34:26 UTC) #43
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/e064666e44e4f3821559ce188cfaf4d696dd4668 Cr-Commit-Position: refs/heads/master@{#439788}
4 years ago (2016-12-20 13:36:17 UTC) #45
grt (UTC plus 2)
3 years, 11 months ago (2017-01-09 11:41:52 UTC) #46
Message was sent while issue was closed.
https://codereview.chromium.org/2507753002/diff/320001/chrome/installer/setup...
File chrome/installer/setup/uninstall.cc (right):

https://codereview.chromium.org/2507753002/diff/320001/chrome/installer/setup...
chrome/installer/setup/uninstall.cc:1236: DeRegisterEventLogProvider();
i just noticed that this shouldn't be within the "if (remove_all)" block. it
just so happens that !remove_all is never true for system-level installs, so
DeRegisterEventLogProvider will get called at the right time. i think it makes
sense to move this up so that it comes before the "if (remove_all)" block.

Powered by Google App Engine
This is Rietveld 408576698