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

Issue 1769703002: Add viewing of error messages from Keystone upon self-update failure. (Closed)

Created:
4 years, 9 months ago by Ryan Myers (chromium)
Modified:
4 years, 9 months ago
CC:
chromium-reviews, Sorin Jianu
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add viewing of error messages from Keystone upon self-update failure. With newer versions of Keystone's Registration Framework, errors in the update process (visible on stderr from agent/ksadmin) are supplied to Chrome in the userInfo dictionary of notifications. Pull this out if present, and display it in chrome://help underneath the error code. Example output: https://screenshot.googleplex.com/uH59OwVp5Xi BUG=512609 Committed: https://crrev.com/fffe8c740df30ab0529e05000a6fce138075023a Cr-Commit-Position: refs/heads/master@{#383217}

Patch Set 1 #

Total comments: 27

Patch Set 2 : Code review feedback #

Patch Set 3 : Code review feedback pt2 #

Total comments: 28

Patch Set 4 : Code review feedback pt3 + error message l10n #

Total comments: 10

Patch Set 5 : Code review feedback pt4 #

Total comments: 5

Patch Set 6 : Display errors on status==FAILED, not !message.empty() #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -53 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/mac/keystone_glue.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/mac/keystone_glue.mm View 1 2 3 4 26 chunks +116 lines, -51 lines 0 comments Download
M chrome/browser/mac/keystone_registration.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/mac/keystone_registration.mm View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/help/version_updater_mac.mm View 1 2 3 4 5 3 chunks +31 lines, -1 line 1 comment Download

Messages

Total messages: 55 (21 generated)
ryanmyers
PTAL, sorry for not getting this out for review pre-vacation.
4 years, 9 months ago (2016-03-04 23:52:45 UTC) #3
Sorin Jianu
Thank you. We would need approval from the OWNERS of the webui/help I assume.
4 years, 9 months ago (2016-03-05 00:57:45 UTC) #4
Sorin Jianu
I removed myself from the reviewers list. It is nice for me to know what ...
4 years, 9 months ago (2016-03-05 00:59:22 UTC) #7
Boris Vidolov
Thanks, Ryan. This is really good change! I have just a few comments. https://codereview.chromium.org/1769703002/diff/1/chrome/browser/mac/keystone_glue.mm File ...
4 years, 9 months ago (2016-03-08 22:32:52 UTC) #8
Ryan Myers (chromium)
Thanks, Boris! https://codereview.chromium.org/1769703002/diff/1/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/1769703002/diff/1/chrome/browser/mac/keystone_glue.mm#newcode132 chrome/browser/mac/keystone_glue.mm:132: error:(NSString *)error; On 2016/03/08 22:32:51, Boris Vidolov ...
4 years, 9 months ago (2016-03-22 22:39:23 UTC) #9
Boris Vidolov
Thanks, Ryan! I have a really minor comment (to remove comment). https://codereview.chromium.org/1769703002/diff/1/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): ...
4 years, 9 months ago (2016-03-23 00:24:13 UTC) #11
Boris Vidolov
lgtm
4 years, 9 months ago (2016-03-23 00:24:23 UTC) #12
Ryan Myers (chromium)
https://codereview.chromium.org/1769703002/diff/1/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/1769703002/diff/1/chrome/browser/mac/keystone_glue.mm#newcode663 chrome/browser/mac/keystone_glue.mm:663: // Error messages may be included, depending on the ...
4 years, 9 months ago (2016-03-23 00:48:23 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1769703002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1769703002/40001
4 years, 9 months ago (2016-03-23 00:49:44 UTC) #18
Boris Vidolov
lgtm
4 years, 9 months ago (2016-03-23 00:50:29 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-23 01:25:16 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1769703002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1769703002/40001
4 years, 9 months ago (2016-03-23 02:02:55 UTC) #23
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 9 months ago (2016-03-23 02:02:59 UTC) #25
Mark Mentovai
https://codereview.chromium.org/1769703002/diff/40001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/1769703002/diff/40001/chrome/browser/mac/keystone_glue.mm#newcode62 chrome/browser/mac/keystone_glue.mm:62: // Non-localized error message to return when we can't ...
4 years, 9 months ago (2016-03-23 15:52:04 UTC) #27
Boris Vidolov
Pushing back on a couple of comments in KeystoneGlue implementation. https://codereview.chromium.org/1769703002/diff/40001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/1769703002/diff/40001/chrome/browser/mac/keystone_glue.mm#newcode62 ...
4 years, 9 months ago (2016-03-23 17:17:25 UTC) #28
Mark Mentovai
https://codereview.chromium.org/1769703002/diff/40001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/1769703002/diff/40001/chrome/browser/mac/keystone_glue.mm#newcode62 chrome/browser/mac/keystone_glue.mm:62: // Non-localized error message to return when we can't ...
4 years, 9 months ago (2016-03-23 17:22:06 UTC) #29
Boris Vidolov
https://codereview.chromium.org/1769703002/diff/40001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/1769703002/diff/40001/chrome/browser/mac/keystone_glue.mm#newcode62 chrome/browser/mac/keystone_glue.mm:62: // Non-localized error message to return when we can't ...
4 years, 9 months ago (2016-03-23 17:37:29 UTC) #30
Ryan Myers (chromium)
Thanks, Mark. I'm tempted for keystone_glue to put a "using base::mac::ObjCCast;" at the top and ...
4 years, 9 months ago (2016-03-23 22:29:38 UTC) #32
Ryan Myers (chromium)
Thanks, Mark. I'm tempted for keystone_glue to put a "using base::mac::ObjCCast;" at the top and ...
4 years, 9 months ago (2016-03-23 22:29:40 UTC) #33
Mark Mentovai
LGTM. Thanks, and good luck on your next project! https://codereview.chromium.org/1769703002/diff/80001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1769703002/diff/80001/chrome/app/generated_resources.grd#newcode8108 chrome/app/generated_resources.grd:8108: ...
4 years, 9 months ago (2016-03-24 18:06:38 UTC) #34
Ryan Myers (chromium)
Thanks! https://codereview.chromium.org/1769703002/diff/80001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1769703002/diff/80001/chrome/app/generated_resources.grd#newcode8108 chrome/app/generated_resources.grd:8108: + Automatic update setup failed. (Pre-flight process could ...
4 years, 9 months ago (2016-03-24 19:57:28 UTC) #35
Mark Mentovai
LGTM https://codereview.chromium.org/1769703002/diff/100001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/1769703002/diff/100001/chrome/browser/mac/keystone_glue.mm#newcode588 chrome/browser/mac/keystone_glue.mm:588: error:errorMessages]; For non-failure states like this and kAutoupdateRegistered, ...
4 years, 9 months ago (2016-03-24 20:10:47 UTC) #36
Ryan Myers (chromium)
https://codereview.chromium.org/1769703002/diff/100001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/1769703002/diff/100001/chrome/browser/mac/keystone_glue.mm#newcode588 chrome/browser/mac/keystone_glue.mm:588: error:errorMessages]; On 2016/03/24 20:10:47, Mark Mentovai wrote: > For ...
4 years, 9 months ago (2016-03-24 20:16:05 UTC) #37
Mark Mentovai
https://codereview.chromium.org/1769703002/diff/100001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/1769703002/diff/100001/chrome/browser/mac/keystone_glue.mm#newcode588 chrome/browser/mac/keystone_glue.mm:588: error:errorMessages]; Ryan Myers (chromium) wrote: > On 2016/03/24 20:10:47, ...
4 years, 9 months ago (2016-03-24 20:28:48 UTC) #38
Ryan Myers (chromium)
https://codereview.chromium.org/1769703002/diff/100001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/1769703002/diff/100001/chrome/browser/mac/keystone_glue.mm#newcode588 chrome/browser/mac/keystone_glue.mm:588: error:errorMessages]; On 2016/03/24 20:28:48, Mark Mentovai wrote: > Ryan ...
4 years, 9 months ago (2016-03-24 20:43:16 UTC) #39
Mark Mentovai
LGTM Thanks again, Ryan!
4 years, 9 months ago (2016-03-24 20:51:41 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1769703002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1769703002/120001
4 years, 9 months ago (2016-03-24 20:56:01 UTC) #43
Ryan Myers (chromium)
Hi Xiyuan -- can you scan and approve the change to version_updater_mac.cc in helpui?
4 years, 9 months ago (2016-03-24 21:10:05 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/160587)
4 years, 9 months ago (2016-03-24 21:11:48 UTC) #47
xiyuan
lgtm nit is optional. https://codereview.chromium.org/1769703002/diff/120001/chrome/browser/ui/webui/help/version_updater_mac.mm File chrome/browser/ui/webui/help/version_updater_mac.mm (right): https://codereview.chromium.org/1769703002/diff/120001/chrome/browser/ui/webui/help/version_updater_mac.mm#newcode240 chrome/browser/ui/webui/help/version_updater_mac.mm:240: message += base::UTF8ToUTF16("</pre>"); nit: String ...
4 years, 9 months ago (2016-03-24 22:14:15 UTC) #48
Ryan Myers (chromium)
On 2016/03/24 22:14:15, xiyuan wrote: > lgtm > > nit is optional. > > https://codereview.chromium.org/1769703002/diff/120001/chrome/browser/ui/webui/help/version_updater_mac.mm ...
4 years, 9 months ago (2016-03-25 00:28:23 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1769703002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1769703002/120001
4 years, 9 months ago (2016-03-25 00:29:22 UTC) #51
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 9 months ago (2016-03-25 01:21:30 UTC) #53
commit-bot: I haz the power
4 years, 9 months ago (2016-03-25 01:23:05 UTC) #55
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/fffe8c740df30ab0529e05000a6fce138075023a
Cr-Commit-Position: refs/heads/master@{#383217}

Powered by Google App Engine
This is Rietveld 408576698