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

Issue 729273002: Modernize on-demand update checks on Windows. (Closed)

Created:
6 years, 1 month ago by grt (UTC plus 2)
Modified:
6 years ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Modernize on-demand update checks on Windows. The code was a bit long in the tooth. Some changes: - There is now a fairly comprehensive unit test. - Update checks no longer do a nested Run() of the FILE thread's message loop. Rather, they return to the main loop while waiting for Google Update. - A callback is used to return the results rather than a single-method listener interface. - Lifetime management is simpler: the interface can be fire-and-forget since the caller could specify a null callback. BUG=424689 Committed: https://crrev.com/5a83109b2fe5f328635cc297dc6db67518071dda Cr-Commit-Position: refs/heads/master@{#306421}

Patch Set 1 #

Total comments: 25

Patch Set 2 : disable tests that don't apply to chromium builds #

Total comments: 42

Patch Set 3 : comments #

Total comments: 13

Patch Set 4 : more comments #

Patch Set 5 : more comments #

Patch Set 6 : moved scoped_path_override to issue 766813002 #

Patch Set 7 : ForTesting since it's enforced by presubmit checks #

Total comments: 6

Patch Set 8 : sync to position 306381 #

Patch Set 9 : final tweaks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+998 lines, -390 lines) Patch
M chrome/browser/google/google_update_win.h View 1 2 3 4 5 6 3 chunks +38 lines, -89 lines 0 comments Download
M chrome/browser/google/google_update_win.cc View 1 2 3 4 5 6 7 8 6 chunks +353 lines, -254 lines 0 comments Download
A chrome/browser/google/google_update_win_unittest.cc View 1 2 3 4 5 6 1 chunk +580 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/help/version_updater_win.cc View 1 2 3 4 11 chunks +26 lines, -47 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 34 (15 generated)
grt (UTC plus 2)
Please take a look as per: pkasting: chrome/browser/google/* dbeam: chrome/browser/ui/webui/* phajdan.jr: base/test/* Thanks.
6 years ago (2014-11-25 19:39:10 UTC) #9
Peter Kasting
https://codereview.chromium.org/729273002/diff/120001/chrome/browser/google/google_update_win.cc File chrome/browser/google/google_update_win.cc (right): https://codereview.chromium.org/729273002/diff/120001/chrome/browser/google/google_update_win.cc#newcode46 chrome/browser/google/google_update_win.cc:46: DCHECK_EQ(!InstallUtil::IsPerUserInstall(chrome_exe_path.value().c_str()), Nit: DCHECK_NE and remove the ! https://codereview.chromium.org/729273002/diff/120001/chrome/browser/google/google_update_win.cc#newcode92 chrome/browser/google/google_update_win.cc:92: ...
6 years ago (2014-11-26 00:51:48 UTC) #10
Dan Beam
-dbeam@, +jhawkins@
6 years ago (2014-11-26 03:17:02 UTC) #13
Paweł Hajdan Jr.
https://codereview.chromium.org/729273002/diff/140001/base/test/scoped_path_override.cc File base/test/scoped_path_override.cc (right): https://codereview.chromium.org/729273002/diff/140001/base/test/scoped_path_override.cc#newcode29 base/test/scoped_path_override.cc:29: bool result = PathService::OverrideAndCreateIfNeeded(key, path, Why not have the ...
6 years ago (2014-11-26 15:44:36 UTC) #14
grt (UTC plus 2)
Thanks, PTAL. https://codereview.chromium.org/729273002/diff/120001/chrome/browser/google/google_update_win.cc File chrome/browser/google/google_update_win.cc (right): https://codereview.chromium.org/729273002/diff/120001/chrome/browser/google/google_update_win.cc#newcode46 chrome/browser/google/google_update_win.cc:46: DCHECK_EQ(!InstallUtil::IsPerUserInstall(chrome_exe_path.value().c_str()), On 2014/11/26 00:51:46, Peter Kasting wrote: ...
6 years ago (2014-11-26 21:40:42 UTC) #17
Peter Kasting
The Release() issue is the only substantive blocker below, everything else is style debates. https://codereview.chromium.org/729273002/diff/120001/chrome/browser/google/google_update_win.cc ...
6 years ago (2014-11-26 22:13:05 UTC) #18
grt (UTC plus 2)
https://codereview.chromium.org/729273002/diff/140001/chrome/browser/google/google_update_win.cc File chrome/browser/google/google_update_win.cc (right): https://codereview.chromium.org/729273002/diff/140001/chrome/browser/google/google_update_win.cc#newcode428 chrome/browser/google/google_update_win.cc:428: on_demand_ = nullptr; On 2014/11/26 22:13:04, Peter Kasting wrote: ...
6 years ago (2014-11-26 23:45:47 UTC) #19
Peter Kasting
LGTM, please do consider my feedback in the last mail + this one. https://codereview.chromium.org/729273002/diff/140001/chrome/browser/google/google_update_win.cc File ...
6 years ago (2014-11-27 00:28:51 UTC) #20
grt (UTC plus 2)
Thanks for the comments, Peter. I'm going to wait to land until I have a ...
6 years ago (2014-11-27 04:44:58 UTC) #21
Peter Kasting
https://codereview.chromium.org/729273002/diff/140001/chrome/browser/google/google_update_win.cc File chrome/browser/google/google_update_win.cc (right): https://codereview.chromium.org/729273002/diff/140001/chrome/browser/google/google_update_win.cc#newcode451 chrome/browser/google/google_update_win.cc:451: void CheckForUpdate(bool install_if_newer, On 2014/11/27 04:44:56, grt wrote: > ...
6 years ago (2014-11-27 08:07:35 UTC) #22
Paweł Hajdan Jr.
base/test LGTM
6 years ago (2014-11-27 10:31:33 UTC) #23
grt (UTC plus 2)
I've simplified things a bit as you've requested. I also moved the base/test changes into ...
6 years ago (2014-11-27 22:01:10 UTC) #24
Peter Kasting
LGTM https://codereview.chromium.org/729273002/diff/140001/chrome/browser/google/google_update_win.cc File chrome/browser/google/google_update_win.cc (right): https://codereview.chromium.org/729273002/diff/140001/chrome/browser/google/google_update_win.cc#newcode411 chrome/browser/google/google_update_win.cc:411: if (hr != S_OK) { On 2014/11/26 21:40:41, ...
6 years ago (2014-12-02 00:56:40 UTC) #25
grt (UTC plus 2)
Thanks. https://codereview.chromium.org/729273002/diff/140001/chrome/browser/google/google_update_win.cc File chrome/browser/google/google_update_win.cc (right): https://codereview.chromium.org/729273002/diff/140001/chrome/browser/google/google_update_win.cc#newcode411 chrome/browser/google/google_update_win.cc:411: if (hr != S_OK) { On 2014/12/02 00:56:39, ...
6 years ago (2014-12-02 14:30:01 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/729273002/290001
6 years ago (2014-12-02 14:31:49 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel/builds/16334)
6 years ago (2014-12-02 16:33:17 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/729273002/290001
6 years ago (2014-12-02 17:55:38 UTC) #32
commit-bot: I haz the power
Committed patchset #9 (id:290001)
6 years ago (2014-12-02 18:40:53 UTC) #33
commit-bot: I haz the power
6 years ago (2014-12-02 18:42:03 UTC) #34
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/5a83109b2fe5f328635cc297dc6db67518071dda
Cr-Commit-Position: refs/heads/master@{#306421}

Powered by Google App Engine
This is Rietveld 408576698