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

Issue 2299203004: Attempt to repair corrupt enterprise policy force-installed extensions (Closed)

Created:
4 years, 3 months ago by asargent_no_longer_on_chrome
Modified:
4 years, 3 months ago
Reviewers:
lazyboy, Steven Holte
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, asvitkine+watch_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Attempt to repair corrupt enterprise policy force-installed extensions For normally installed extensions, when the content verification system detects corruption we just disable the extension and provide a "Repair" button on the chrome://extensions page that users can click to manually reinstall the extension. But for enterprise force-installed extensions that are supposed to always remain enabled, we weren't sure how to handle this (since we have had a few bugs over time which resulted in false-positive corruption detection in various edge cases, and this can happen as a result of minor disk corruption as well as malicious changes). So we just let them keep running but recorded an UMA histogram to measure how often this happens. Looking at the data for this, it happens very rarely - around 0.5% of total enterprise policy extensions seem to be affected. In some recent conversations with Google's own internal IT folks, we decided we'd like to attempt to automatically repair instead of just doing nothing, so this CL implements that. It also includes new UMA stats for measuring the number of repair attempts and successes, as well as issuing a warning to the browser log which enterprise admins could have automated systems watching for. Over time we'd like to implement a separate log facility for these kinds of events that are of interest just to enterprise admins so that they don't have to turn on the general browser log. BUG=447040 Committed: https://crrev.com/56282ab78b4c684e7008f777a81924d823177817 Cr-Commit-Position: refs/heads/master@{#417608}

Patch Set 1 #

Patch Set 2 : merged latest head #

Patch Set 3 : fix chromeos compile problem #

Total comments: 30

Patch Set 4 : switched to using installsource, addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+385 lines, -65 lines) Patch
M chrome/browser/chromeos/extensions/external_cache.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/chrome_content_verifier_delegate.h View 3 chunks +3 lines, -8 lines 0 comments Download
M chrome/browser/extensions/chrome_content_verifier_delegate.cc View 1 2 3 5 chunks +12 lines, -14 lines 0 comments Download
M chrome/browser/extensions/content_verifier_browsertest.cc View 1 2 3 6 chunks +260 lines, -21 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/extensions/pending_extension_manager.h View 1 2 3 3 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/extensions/pending_extension_manager.cc View 1 2 3 3 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/extensions/updater/extension_updater.cc View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/extensions/updater/extension_updater_unittest.cc View 1 2 3 2 chunks +7 lines, -7 lines 0 comments Download
M extensions/browser/updater/extension_downloader.h View 1 2 3 2 chunks +16 lines, -2 lines 0 comments Download
M extensions/browser/updater/extension_downloader.cc View 1 2 3 7 chunks +17 lines, -6 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (23 generated)
asargent_no_longer_on_chrome
lazyboy: please review overall holte: please review histograms changes in tools/metrics/histograms/histograms.xml c/b/e/chrome_content_verifier_delegate.cc c/b/e/pending_extension_manager.cc
4 years, 3 months ago (2016-09-02 16:33:09 UTC) #16
Steven Holte
histograms lgtm
4 years, 3 months ago (2016-09-02 19:02:07 UTC) #17
lazyboy
https://codereview.chromium.org/2299203004/diff/60001/chrome/browser/chromeos/extensions/external_cache.cc File chrome/browser/chromeos/extensions/external_cache.cc (right): https://codereview.chromium.org/2299203004/diff/60001/chrome/browser/chromeos/extensions/external_cache.cc#newcode247 chrome/browser/chromeos/extensions/external_cache.cc:247: bool keep_if_present = unrelated to this CL, but generally ...
4 years, 3 months ago (2016-09-02 19:21:53 UTC) #18
asargent_no_longer_on_chrome
All comments addressed. In conversation with the Omaha folks, it sounds like it works for ...
4 years, 3 months ago (2016-09-09 03:30:44 UTC) #23
lazyboy
lgtm
4 years, 3 months ago (2016-09-09 04:49:34 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/2299203004/80001
4 years, 3 months ago (2016-09-09 16:53:10 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 3 months ago (2016-09-09 16:58:22 UTC) #29
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 17:00:03 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/56282ab78b4c684e7008f777a81924d823177817
Cr-Commit-Position: refs/heads/master@{#417608}

Powered by Google App Engine
This is Rietveld 408576698