Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Issue 2479633003: Makes the component installers return a Result instead of a bool. (Closed)

Created:
4 years, 1 month ago by Sorin Jianu
Modified:
4 years, 1 month ago
CC:
chromium-reviews, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, iclelland+watch_chromuim.org, chasej+watch_chromium.org, pam+watch_chromium.org, chromium-apps-reviews_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Makes the component installers return a Result instead of a bool. This allows conveying more error information from the component installers to other layers of the component updater. Before this change, the component install execution path could only return one error. We are trying to understand the reasons why the component installers fail. BUG=615669 Committed: https://crrev.com/73769a84d74113a4a10e4152e63d219eb72f2630 Committed: https://crrev.com/2892f721ec000a72ace40512c19f8b2f2e512c37 Cr-Original-Commit-Position: refs/heads/master@{#429995} Cr-Commit-Position: refs/heads/master@{#430333}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix Flash build break #

Patch Set 3 : Add {} for multiline if. #

Patch Set 4 : Add {} around multiline if #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -182 lines) Patch
M chrome/browser/component_updater/ev_whitelist_component_installer.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/ev_whitelist_component_installer.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/file_type_policies_component_installer.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/file_type_policies_component_installer.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/origin_trials_component_installer.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/origin_trials_component_installer.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/pepper_flash_component_installer.cc View 1 2 3 4 chunks +13 lines, -7 lines 0 comments Download
M chrome/browser/component_updater/pnacl_component_installer.h View 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/pnacl_component_installer.cc View 3 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/recovery_component_installer.cc View 5 chunks +19 lines, -4 lines 0 comments Download
M chrome/browser/component_updater/sth_set_component_installer.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/sth_set_component_installer.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/subresource_filter_component_installer.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/subresource_filter_component_installer.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/supervised_user_whitelist_installer.cc View 3 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/component_updater/supervised_user_whitelist_installer_unittest.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/component_updater/sw_reporter_installer_win.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/sw_reporter_installer_win.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/swiftshader_component_installer.cc View 5 chunks +17 lines, -3 lines 0 comments Download
M chrome/browser/component_updater/widevine_cdm_component_installer.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/net/crl_set_fetcher.h View 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/net/crl_set_fetcher.cc View 3 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M components/component_updater/component_updater_service_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M components/component_updater/default_component_installer.h View 3 chunks +10 lines, -7 lines 0 comments Download
M components/component_updater/default_component_installer.cc View 7 chunks +24 lines, -18 lines 0 comments Download
M components/component_updater/default_component_installer_unittest.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M components/update_client/action_update.h View 5 chunks +13 lines, -10 lines 0 comments Download
M components/update_client/action_update.cc View 6 chunks +35 lines, -40 lines 0 comments Download
M components/update_client/test_installer.h View 2 chunks +4 lines, -4 lines 0 comments Download
M components/update_client/test_installer.cc View 4 chunks +13 lines, -7 lines 0 comments Download
M components/update_client/update_client.h View 3 chunks +13 lines, -2 lines 0 comments Download
M components/update_client/update_client_errors.h View 1 chunk +28 lines, -18 lines 0 comments Download
M components/update_client/update_client_unittest.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M components/update_client/utils.h View 2 chunks +7 lines, -0 lines 0 comments Download
M components/update_client/utils.cc View 3 chunks +7 lines, -0 lines 0 comments Download
M extensions/browser/updater/update_install_shim.h View 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/browser/updater/update_install_shim.cc View 3 chunks +11 lines, -5 lines 0 comments Download
M ios/chrome/browser/net/crl_set_fetcher.h View 2 chunks +5 lines, -2 lines 0 comments Download
M ios/chrome/browser/net/crl_set_fetcher.cc View 3 chunks +12 lines, -2 lines 0 comments Download

Messages

Total messages: 39 (23 generated)
Sorin Jianu
PTAL thank you!
4 years, 1 month ago (2016-11-03 23:05:45 UTC) #3
waffles
lgtm https://codereview.chromium.org/2479633003/diff/1/chrome/browser/component_updater/file_type_policies_component_installer.cc File chrome/browser/component_updater/file_type_policies_component_installer.cc (right): https://codereview.chromium.org/2479633003/diff/1/chrome/browser/component_updater/file_type_policies_component_installer.cc#newcode73 chrome/browser/component_updater/file_type_policies_component_installer.cc:73: return update_client::CrxInstaller::Result(0); // Nothing custom here. Elsewhere, we ...
4 years, 1 month ago (2016-11-04 00:43:56 UTC) #5
Sorin Jianu
Hi, I need a bunch of owner's approval for changes that are mechanical, especially the ...
4 years, 1 month ago (2016-11-04 00:59:18 UTC) #8
pastarmovj
**/policy lgtm
4 years, 1 month ago (2016-11-04 10:05:03 UTC) #12
asargent_no_longer_on_chrome
extensions lgtm
4 years, 1 month ago (2016-11-04 15:55:15 UTC) #13
agl
LGTM
4 years, 1 month ago (2016-11-04 16:15:50 UTC) #14
sdefresne
ios/ lgtm
4 years, 1 month ago (2016-11-04 16:27:52 UTC) #15
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/2479633003/1
4 years, 1 month ago (2016-11-04 17:39:55 UTC) #17
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-04 20:19:12 UTC) #19
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/73769a84d74113a4a10e4152e63d219eb72f2630 Cr-Commit-Position: refs/heads/master@{#429995}
4 years, 1 month ago (2016-11-04 20:21:59 UTC) #21
Avi (use Gerrit)
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/2483513002/ by [email protected]. ...
4 years, 1 month ago (2016-11-04 20:44:26 UTC) #22
findit-for-me
FYI: Findit identified this CL at revision 429995 as the culprit for failures in the ...
4 years, 1 month ago (2016-11-04 20:58:17 UTC) #23
Sorin Jianu
Fixed Flash build break. Not sure why the try bot run is not including the ...
4 years, 1 month ago (2016-11-04 21:31:08 UTC) #24
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/2479633003/80001
4 years, 1 month ago (2016-11-07 17:52:10 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-07 19:00:14 UTC) #37
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 19:03:31 UTC) #39
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2892f721ec000a72ace40512c19f8b2f2e512c37
Cr-Commit-Position: refs/heads/master@{#430333}

Powered by Google App Engine
This is Rietveld 408576698