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

Issue 2495123003: Continue attempts to reinstall corrupt policy extensions across restarts (Closed)

Created:
4 years, 1 month ago by asargent_no_longer_on_chrome
Modified:
4 years ago
Reviewers:
xiyuan, lazyboy
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, stgao
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Continue attempts to reinstall corrupt policy extensions across restarts If a policy force-installed extension gets corrupted, we'll disable it and start attempting to reinstall it. However, if chrome shuts down before this is complete, we won't start trying again on any subsequent run of the browser. This also switches from using the ManagementPolicy :: Provider :: UserMayModifySettings function to determine "policy force installed-ess" to using ManagementPolicy :: Provider :: MustRemainEnabled instead, which is more correct for the case of force installs (eg "ExtensionInstallForcelist" in the policy settings). BUG=664690 Committed: https://crrev.com/0de8a8bc49761792dc5a74f001395cdd11ddc4e6 Cr-Commit-Position: refs/heads/master@{#434012}

Patch Set 1 #

Patch Set 2 : fix tests on chromeos #

Patch Set 3 : cleanup #

Total comments: 8

Patch Set 4 : review feedback fixes #

Patch Set 5 : merged latest from origin/master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -32 lines) Patch
M chrome/browser/chromeos/app_mode/kiosk_crash_restore_browsertest.cc View 1 3 chunks +2 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/login/kiosk_browsertest.cc View 1 6 chunks +3 lines, -17 lines 0 comments Download
M chrome/browser/extensions/browsertest_util.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/browsertest_util.cc View 1 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_content_verifier_delegate.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/content_verifier_browsertest.cc View 1 2 3 3 chunks +85 lines, -0 lines 0 comments Download
M chrome/browser/extensions/installed_loader.cc View 1 2 3 4 2 chunks +18 lines, -3 lines 0 comments Download

Messages

Total messages: 41 (28 generated)
asargent_no_longer_on_chrome
lazyboy: can you please review? The functional change is in chrome/browser/extensions/installed_loader.cc, and most of the ...
4 years, 1 month ago (2016-11-15 21:41:06 UTC) #14
lazyboy
lgtm with some comments. One concern to think about there. Also nit in CL description: ...
4 years, 1 month ago (2016-11-16 01:44:53 UTC) #15
asargent_no_longer_on_chrome
CL description fixed. https://codereview.chromium.org/2495123003/diff/40001/chrome/browser/extensions/content_verifier_browsertest.cc File chrome/browser/extensions/content_verifier_browsertest.cc (right): https://codereview.chromium.org/2495123003/diff/40001/chrome/browser/extensions/content_verifier_browsertest.cc#newcode430 chrome/browser/extensions/content_verifier_browsertest.cc:430: return extension->id() != id_; On 2016/11/16 ...
4 years, 1 month ago (2016-11-17 21:48:01 UTC) #18
asargent_no_longer_on_chrome
xiyuan: please review the two changes in chrome/browser/chromeos/* (I've just moved the two copies of ...
4 years, 1 month ago (2016-11-17 21:52:07 UTC) #21
xiyuan
c/b/chromeos/* lgtm
4 years, 1 month ago (2016-11-17 21:55:18 UTC) #22
lazyboy
slgtm https://codereview.chromium.org/2495123003/diff/40001/chrome/browser/extensions/installed_loader.cc File chrome/browser/extensions/installed_loader.cc (right): https://codereview.chromium.org/2495123003/diff/40001/chrome/browser/extensions/installed_loader.cc#newcode8 chrome/browser/extensions/installed_loader.cc:8: #include <memory> On 2016/11/17 21:48:01, Antony Sargent wrote: ...
4 years, 1 month ago (2016-11-17 21:59:09 UTC) #23
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/2495123003/60001
4 years, 1 month ago (2016-11-17 22:37:46 UTC) #26
commit-bot: I haz the power
Failed to apply the patch.
4 years, 1 month ago (2016-11-18 00:07:48 UTC) #28
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/2495123003/80001
4 years ago (2016-11-22 21:12:02 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-11-22 22:58:36 UTC) #34
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/0de8a8bc49761792dc5a74f001395cdd11ddc4e6 Cr-Commit-Position: refs/heads/master@{#434012}
4 years ago (2016-11-22 23:00:24 UTC) #36
stgao
FYI: this CL seems to introduce a new flaky test ContentVerifierPolicyTest.PolicyCorruptedOnStartup https://findit-for-me.appspot.com/waterfall/check-flake?master_name=chromium.mac&builder_name=Mac10.11%20Tests&build_number=3982&step_name=browser_tests%20on%20Mac-10.11&test_name=ContentVerifierPolicyTest.PolicyCorruptedOnStartup One occurrence on ...
4 years ago (2016-11-28 20:05:13 UTC) #38
asargent_no_longer_on_chrome
4 years ago (2016-11-28 20:13:09 UTC) #41
Message was sent while issue was closed.
On 2016/11/28 20:05:13, stgao (slow on Monday) wrote:
> FYI: this CL seems to introduce a new flaky test
> ContentVerifierPolicyTest.PolicyCorruptedOnStartup
> 
>
https://findit-for-me.appspot.com/waterfall/check-flake?master_name=chromium....
> 
> One occurrence on Waterfall is:
>
https://build.chromium.org/p/chromium.mac/builders/Mac10.11%20Tests/builds/39...

I already disabled the test with:

https://codereview.chromium.org/2527693003/

Powered by Google App Engine
This is Rietveld 408576698