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

Issue 1117263002: Switch on-demand update checks to the less-old GoogleUpdate3 API. (Closed)

Created:
5 years, 7 months ago by grt (UTC plus 2)
Modified:
5 years, 7 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Switch on-demand update checks to the less-old GoogleUpdate3 API. This brings a number of benefits: - Download and install progress is now reported to the UX. - Better reporting of errors from Google Update is now possible. - Installer failures are now reported via UMA. - Reporting of updates blocked by GP is now done by way of Google Update. BUG=424689, 458564, 461971 Committed: https://crrev.com/1294c7440c5d648f769295ac8ae5b7555e507918 Cr-Commit-Position: refs/heads/master@{#329634}

Patch Set 1 #

Patch Set 2 : better ui message when updates are disabled by policy #

Total comments: 76

Patch Set 3 : Introduced delegate interface for reporting status #

Patch Set 4 : remaining comments addressed #

Patch Set 5 : chromium tweak #

Total comments: 42

Patch Set 6 : latest comments, better parent window handling, proper Google Update API #

Total comments: 13

Patch Set 7 : final nits before rebase and commmit #

Patch Set 8 : sync to position 329622 #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+1364 lines, -909 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/google/google_update_win.h View 1 2 3 4 5 6 3 chunks +61 lines, -48 lines 0 comments Download
M chrome/browser/google/google_update_win.cc View 1 2 3 4 5 4 chunks +527 lines, -313 lines 6 comments Download
M chrome/browser/google/google_update_win_unittest.cc View 1 2 3 4 5 9 chunks +584 lines, -329 lines 0 comments Download
M chrome/browser/ui/webui/help/help_handler.cc View 1 2 3 4 5 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/help/version_updater.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 2 comments Download
M chrome/browser/ui/webui/help/version_updater_basic.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/help/version_updater_chromeos.h View 1 2 3 4 5 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/help/version_updater_chromeos.cc View 1 2 3 4 5 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/help/version_updater_mac.mm View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/help/version_updater_win.cc View 1 2 3 4 5 3 chunks +97 lines, -196 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 5 chunks +72 lines, -2 lines 0 comments Download

Messages

Total messages: 43 (22 generated)
grt (UTC plus 2)
Gentlemen, please take a look: pkasting: everything ganesh: IGoogleUpdate3 interaction jwd: histograms.xml Thanks.
5 years, 7 months ago (2015-05-06 19:50:51 UTC) #8
jwd
histograms.xml LGTM
5 years, 7 months ago (2015-05-06 21:35:30 UTC) #9
Peter Kasting
I've only had time to look at the files with smaller changes (i.e. not the ...
5 years, 7 months ago (2015-05-07 01:12:28 UTC) #10
Peter Kasting
https://codereview.chromium.org/1117263002/diff/100001/chrome/browser/google/google_update_win.cc File chrome/browser/google/google_update_win.cc (right): https://codereview.chromium.org/1117263002/diff/100001/chrome/browser/google/google_update_win.cc#newcode164 chrome/browser/google/google_update_win.cc:164: // Prepares |results| to return the upgrade error indicated ...
5 years, 7 months ago (2015-05-07 22:37:30 UTC) #11
grt (UTC plus 2)
Thanks for the great feedback. I was able to trim down VersionUpdaterWin quite a bit ...
5 years, 7 months ago (2015-05-08 18:51:51 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1117263002/140001
5 years, 7 months ago (2015-05-08 18:54:29 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1117263002/180001
5 years, 7 months ago (2015-05-08 19:25:10 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/55458)
5 years, 7 months ago (2015-05-09 01:35:30 UTC) #21
Peter Kasting
Is the switch to weak pointers necessary? I don't really understand any of this code ...
5 years, 7 months ago (2015-05-09 02:19:03 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1117263002/250001
5 years, 7 months ago (2015-05-12 20:17:36 UTC) #28
grt (UTC plus 2)
Thanks for the comments. Regarding your WeakPtr comments/concerns: the old code bound a callback to ...
5 years, 7 months ago (2015-05-12 20:21:52 UTC) #29
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-12 21:25:38 UTC) #31
Peter Kasting
LGTM https://codereview.chromium.org/1117263002/diff/180001/chrome/browser/google/google_update_win.cc File chrome/browser/google/google_update_win.cc (right): https://codereview.chromium.org/1117263002/diff/180001/chrome/browser/google/google_update_win.cc#newcode59 chrome/browser/google/google_update_win.cc:59: const int64_t kGoogleUpdatePollIntervalMs = 250; On 2015/05/12 20:21:51, ...
5 years, 7 months ago (2015-05-12 22:04:34 UTC) #32
grt (UTC plus 2)
Thanks for the eyes. I'll rebase and reupload and then land. https://codereview.chromium.org/1117263002/diff/180001/chrome/browser/google/google_update_win.cc File chrome/browser/google/google_update_win.cc (right): ...
5 years, 7 months ago (2015-05-13 13:04:05 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1117263002/280001
5 years, 7 months ago (2015-05-13 13:09:29 UTC) #36
commit-bot: I haz the power
Committed patchset #8 (id:280001)
5 years, 7 months ago (2015-05-13 14:30:23 UTC) #37
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/1294c7440c5d648f769295ac8ae5b7555e507918 Cr-Commit-Position: refs/heads/master@{#329634}
5 years, 7 months ago (2015-05-13 14:31:15 UTC) #38
S. Ganesh
lgtm Looks great. Just nits. https://codereview.chromium.org/1117263002/diff/280001/chrome/browser/google/google_update_win.cc File chrome/browser/google/google_update_win.cc (right): https://codereview.chromium.org/1117263002/diff/280001/chrome/browser/google/google_update_win.cc#newcode142 chrome/browser/google/google_update_win.cc:142: // the ServiceClass. MachineClass ...
5 years, 7 months ago (2015-05-13 20:21:41 UTC) #39
grt (UTC plus 2)
Thanks for the feedback. https://codereview.chromium.org/1117263002/diff/280001/chrome/browser/google/google_update_win.cc File chrome/browser/google/google_update_win.cc (right): https://codereview.chromium.org/1117263002/diff/280001/chrome/browser/google/google_update_win.cc#newcode142 chrome/browser/google/google_update_win.cc:142: // the ServiceClass. On 2015/05/13 ...
5 years, 7 months ago (2015-05-13 20:36:38 UTC) #40
Peter Kasting
https://codereview.chromium.org/1117263002/diff/250001/chrome/browser/ui/webui/help/version_updater_basic.cc File chrome/browser/ui/webui/help/version_updater_basic.cc (right): https://codereview.chromium.org/1117263002/diff/250001/chrome/browser/ui/webui/help/version_updater_basic.cc#newcode24 chrome/browser/ui/webui/help/version_updater_basic.cc:24: content::WebContents* /* web_contents */) { On 2015/05/13 13:04:05, grt ...
5 years, 7 months ago (2015-05-13 22:40:55 UTC) #41
Sorin Jianu
5 years, 7 months ago (2015-05-18 20:32:45 UTC) #43
Message was sent while issue was closed.
https://codereview.chromium.org/1117263002/diff/250001/chrome/browser/ui/webu...
File chrome/browser/ui/webui/help/version_updater_win.cc (right):

https://codereview.chromium.org/1117263002/diff/250001/chrome/browser/ui/webu...
chrome/browser/ui/webui/help/version_updater_win.cc:152:
content::BrowserThread::FILE),
On 2015/05/13 13:04:05, grt wrote:
> On 2015/05/12 22:04:34, Peter Kasting wrote:
> > Perhaps outside the scope of this CL, but with my Code Purple hat on: prefer
> to
> > use the blocking pool over the FILE thread wherever possible.
> 
> I tried that early on in this change and found that it can't be done in the
> blocking pool as it exists today. I'll start a thread on chrome-fast so that
the
> Purplers are aware of the issues and can design accordingly.

re: COM on FILE thread, I am interested in the solution to this problem too.
Greg, please let me know if you have an answer and when you are changing this
code. The component update service uses a similar implementation. We need an
single-thread COM apartment to make COM calls to BITS. We use the FILE thread to
do this as the FILE thread is initialized for COM already and we thought is
impractical to use or create a blocking pool for this reason alone.

Powered by Google App Engine
This is Rietveld 408576698