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

Issue 2292293002: Add installer::SetupSingleton. (Closed)

Created:
4 years, 3 months ago by fdoray
Modified:
4 years, 3 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

Add installer::SetupSingleton. Any modification to a Chrome installation should be done within the scope of a SetupSingleton. There can be only one active SetupSingleton per Chrome installation at a time. SetupSingleton will be used to ensure that an update process doesn't run at the same time as a process deleting old files. BUG=310211 Committed: https://crrev.com/d9a53005086b3f45b5ed3cde83e7453b73c03b79 Cr-Commit-Position: refs/heads/master@{#417051}

Patch Set 1 #

Total comments: 30

Patch Set 2 : CR grt #3 #

Patch Set 3 : cleanup diff #

Total comments: 28

Patch Set 4 : CR grt #5 #

Patch Set 5 : self-review #

Total comments: 5

Patch Set 6 : CR grt #7 (don't write result from --rename-chrome-exe, add UMA histogram) #

Patch Set 7 : self-review #

Patch Set 8 : self-review #

Total comments: 6

Patch Set 9 : CR grt #9 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+508 lines, -8 lines) Patch
M chrome/app/chromium_strings.grd View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/app/google_chrome_strings.grd View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/installer/setup/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 2 3 4 5 7 chunks +25 lines, -7 lines 0 comments Download
A chrome/installer/setup/setup_singleton.h View 1 2 3 4 1 chunk +89 lines, -0 lines 0 comments Download
A chrome/installer/setup/setup_singleton.cc View 1 2 3 4 5 6 7 8 1 chunk +138 lines, -0 lines 0 comments Download
A chrome/installer/setup/setup_singleton_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +220 lines, -0 lines 0 comments Download
M chrome/installer/util/installer_state.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/installer/util/prebuild/create_string_rc.py View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/util_constants.h View 1 2 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 3 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
fdoray
PTAL https://codereview.chromium.org/2292293002/diff/1/chrome/installer/setup/setup_singleton.cc File chrome/installer/setup/setup_singleton.cc (right): https://codereview.chromium.org/2292293002/diff/1/chrome/installer/setup/setup_singleton.cc#newcode71 chrome/installer/setup/setup_singleton.cc:71: ::WaitForSingleObject(setup_mutex_.Get(), INFINITE); This could block forever if a ...
4 years, 3 months ago (2016-08-30 20:07:53 UTC) #2
grt (UTC plus 2)
cool! https://codereview.chromium.org/2292293002/diff/1/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/2292293002/diff/1/chrome/installer/setup/setup_main.cc#newcode1754 chrome/installer/setup/setup_main.cc:1754: InstallationState original_state; many operations in the installer inspect ...
4 years, 3 months ago (2016-08-31 12:03:48 UTC) #3
fdoray
PTAnL https://codereview.chromium.org/2292293002/diff/1/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/2292293002/diff/1/chrome/installer/setup/setup_main.cc#newcode1754 chrome/installer/setup/setup_main.cc:1754: InstallationState original_state; On 2016/08/31 12:03:47, grt (UTC plus ...
4 years, 3 months ago (2016-08-31 19:14:22 UTC) #4
grt (UTC plus 2)
https://codereview.chromium.org/2292293002/diff/1/chrome/installer/setup/setup_singleton_unittest.cc File chrome/installer/setup/setup_singleton_unittest.cc (right): https://codereview.chromium.org/2292293002/diff/1/chrome/installer/setup/setup_singleton_unittest.cc#newcode7 chrome/installer/setup/setup_singleton_unittest.cc:7: #include <Windows.h> On 2016/08/31 19:14:21, fdoray wrote: > On ...
4 years, 3 months ago (2016-09-01 12:05:40 UTC) #5
fdoray
PTAnL https://codereview.chromium.org/2292293002/diff/40001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/2292293002/diff/40001/chrome/installer/setup/setup_main.cc#newcode1858 chrome/installer/setup/setup_main.cc:1858: return installer::SETUP_SINGLETON_ACQUISITION_FAILED; On 2016/09/01 12:05:39, grt (UTC plus ...
4 years, 3 months ago (2016-09-01 15:45:23 UTC) #6
grt (UTC plus 2)
https://codereview.chromium.org/2292293002/diff/40001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/2292293002/diff/40001/chrome/installer/setup/setup_main.cc#newcode1858 chrome/installer/setup/setup_main.cc:1858: return installer::SETUP_SINGLETON_ACQUISITION_FAILED; On 2016/09/01 15:45:22, fdoray wrote: > On ...
4 years, 3 months ago (2016-09-01 21:22:42 UTC) #7
fdoray
PTAnL https://codereview.chromium.org/2292293002/diff/40001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/2292293002/diff/40001/chrome/installer/setup/setup_main.cc#newcode1858 chrome/installer/setup/setup_main.cc:1858: return installer::SETUP_SINGLETON_ACQUISITION_FAILED; On 2016/09/01 21:22:41, grt (UTC plus ...
4 years, 3 months ago (2016-09-06 17:29:39 UTC) #8
grt (UTC plus 2)
nice! lgtm with nits. https://codereview.chromium.org/2292293002/diff/80001/chrome/installer/setup/setup_singleton.cc File chrome/installer/setup/setup_singleton.cc (right): https://codereview.chromium.org/2292293002/diff/80001/chrome/installer/setup/setup_singleton.cc#newcode85 chrome/installer/setup/setup_singleton.cc:85: static_cast<DWORD>(base::TimeDelta::FromSeconds(1).InMilliseconds())); On 2016/09/06 17:29:39, fdoray ...
4 years, 3 months ago (2016-09-06 20:22:11 UTC) #9
fdoray
asvitkine@: Please review changes in histograms.xml https://codereview.chromium.org/2292293002/diff/140001/chrome/installer/setup/setup_singleton.cc File chrome/installer/setup/setup_singleton.cc (right): https://codereview.chromium.org/2292293002/diff/140001/chrome/installer/setup/setup_singleton.cc#newcode31 chrome/installer/setup/setup_singleton.cc:31: UMA_HISTOGRAM_ENUMERATION("Installer.SetupSingletonAcquisitionResult", result, On ...
4 years, 3 months ago (2016-09-06 20:49:54 UTC) #11
Alexei Svitkine (slow)
lgtm
4 years, 3 months ago (2016-09-07 18:45:10 UTC) #12
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/2292293002/160001
4 years, 3 months ago (2016-09-07 18:51:15 UTC) #15
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 3 months ago (2016-09-07 21:42:34 UTC) #16
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 21:44:55 UTC) #18
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/d9a53005086b3f45b5ed3cde83e7453b73c03b79
Cr-Commit-Position: refs/heads/master@{#417051}

Powered by Google App Engine
This is Rietveld 408576698