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

Issue 23427003: Reload force-installed extensions on crash/force-close (Closed)

Created:
7 years, 3 months ago by anitawoodruff
Modified:
7 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, Joao da Silva
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Reload force-installed extensions on crash/force-close Previously, users could disable force-installed extensions by killing the process via the Chrome Task Manager or other means. This fix prevents that by reloading force-installed extensions if they crash. Also added an 'extension misbehaving' popup to inform the user if we get stuck in a crash/reload loop, so they know to inform their administrator. BUG=175701 TEST=Updated browser_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220586

Patch Set 1 #

Total comments: 70

Patch Set 2 : Responding to Bartosz' review (take 2) #

Total comments: 33

Patch Set 3 : Refer to 'apps/extensions' instead of 'extensions' everywhere #

Patch Set 4 : Safety checks: post delayed task with weak ptr & null-check extension before reload #

Patch Set 5 : Responding to Bartosz' comments on PS2. #

Total comments: 39

Patch Set 6 : Responding to Bartosz' comments on PS5 #

Total comments: 4

Patch Set 7 : Fixing nits from PS6 #

Total comments: 3

Patch Set 8 : Use isValidProfile check instead of WeakPtr method #

Total comments: 4

Patch Set 9 : Fixing nits #

Patch Set 10 : Removing 'OVERRIDE' notation from .cc file which was causing some tests to fail #

Patch Set 11 : good2.crx was committed manually, this should now work! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+323 lines, -31 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/background/background_contents_service.h View 1 2 3 4 5 6 7 5 chunks +34 lines, -0 lines 0 comments Download
M chrome/browser/background/background_contents_service.cc View 1 2 3 4 5 6 7 8 13 chunks +179 lines, -31 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +104 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
anitawoodruff
Adding Bartosz as reviewer & cc-ing Joao.
7 years, 3 months ago (2013-08-26 12:42:21 UTC) #1
bartfab (slow)
https://codereview.chromium.org/23427003/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/23427003/diff/1/chrome/app/generated_resources.grd#newcode274 chrome/app/generated_resources.grd:274: + <message name="IDS_BACKGROUND_MISBEHAVING_APP_BALLOON_MESSAGE" desc="The contents of the balloon that ...
7 years, 3 months ago (2013-08-26 13:26:52 UTC) #2
anitawoodruff
Hey Bartosz, Sorry, afraid all my resyncing in between has rendered it incapable of showing ...
7 years, 3 months ago (2013-08-26 21:45:23 UTC) #3
anitawoodruff
Hey Bartosz, Philip helped me get Chrome working again (there was just some file in ...
7 years, 3 months ago (2013-08-27 07:56:35 UTC) #4
anitawoodruff
The side-by-side incremental diff from PS1 now works, so I've deleted the old PS2. Hooray! ...
7 years, 3 months ago (2013-08-27 08:54:08 UTC) #5
anitawoodruff
Just noticed a couple more comments that need amending, which I'll fix in the next ...
7 years, 3 months ago (2013-08-27 09:05:36 UTC) #6
anitawoodruff
https://codereview.chromium.org/23427003/diff/20001/chrome/browser/background/background_contents_service.cc File chrome/browser/background/background_contents_service.cc (right): https://codereview.chromium.org/23427003/diff/20001/chrome/browser/background/background_contents_service.cc#newcode61 chrome/browser/background/background_contents_service.cc:61: // Number of recent crashes required to trigger an ...
7 years, 3 months ago (2013-08-27 09:13:03 UTC) #7
anitawoodruff
https://codereview.chromium.org/23427003/diff/20001/chrome/browser/background/background_contents_service.cc File chrome/browser/background/background_contents_service.cc (right): https://codereview.chromium.org/23427003/diff/20001/chrome/browser/background/background_contents_service.cc#newcode61 chrome/browser/background/background_contents_service.cc:61: // Number of recent crashes required to trigger an ...
7 years, 3 months ago (2013-08-27 09:13:03 UTC) #8
bartfab (slow)
https://codereview.chromium.org/23427003/diff/1/chrome/browser/background/background_contents_service.cc File chrome/browser/background/background_contents_service.cc (right): https://codereview.chromium.org/23427003/diff/1/chrome/browser/background/background_contents_service.cc#newcode67 chrome/browser/background/background_contents_service.cc:67: void ScheduleCloseBalloon(const std::string& id) { On 2013/08/26 21:45:23, anitawoodruff ...
7 years, 3 months ago (2013-08-27 09:21:29 UTC) #9
anitawoodruff
https://codereview.chromium.org/23427003/diff/1/chrome/browser/background/background_contents_service.cc File chrome/browser/background/background_contents_service.cc (right): https://codereview.chromium.org/23427003/diff/1/chrome/browser/background/background_contents_service.cc#newcode67 chrome/browser/background/background_contents_service.cc:67: void ScheduleCloseBalloon(const std::string& id) { On 2013/08/27 09:21:29, bartfab ...
7 years, 3 months ago (2013-08-27 10:00:51 UTC) #10
bartfab (slow)
There are still a few comments in patch set 2 that have not been addressed. ...
7 years, 3 months ago (2013-08-27 11:20:14 UTC) #11
anitawoodruff
Sorry; I missed these comments before. https://codereview.chromium.org/23427003/diff/20001/chrome/browser/background/background_contents_service.cc File chrome/browser/background/background_contents_service.cc (right): https://codereview.chromium.org/23427003/diff/20001/chrome/browser/background/background_contents_service.cc#newcode63 chrome/browser/background/background_contents_service.cc:63: const unsigned int ...
7 years, 3 months ago (2013-08-27 11:57:39 UTC) #12
bartfab (slow)
https://codereview.chromium.org/23427003/diff/20001/chrome/browser/background/background_contents_service.cc File chrome/browser/background/background_contents_service.cc (right): https://codereview.chromium.org/23427003/diff/20001/chrome/browser/background/background_contents_service.cc#newcode229 chrome/browser/background/background_contents_service.cc:229: void ShowBalloon(const Extension* extension, Profile* profile, bool isForced) { ...
7 years, 3 months ago (2013-08-27 15:37:43 UTC) #13
anitawoodruff
https://codereview.chromium.org/23427003/diff/20001/chrome/browser/background/background_contents_service.cc File chrome/browser/background/background_contents_service.cc (right): https://codereview.chromium.org/23427003/diff/20001/chrome/browser/background/background_contents_service.cc#newcode229 chrome/browser/background/background_contents_service.cc:229: void ShowBalloon(const Extension* extension, Profile* profile, bool isForced) { ...
7 years, 3 months ago (2013-08-27 17:34:29 UTC) #14
anitawoodruff
Adding Antony & Drew as reviewers. Drew: please review chrome/browser/background/background_contents_service.cc https://codereview.chromium.org/23427003/patch/10001/56002 chrome/browser/background/background_contents_service.h https://codereview.chromium.org/23427003/patch/10001/56003 chrome/browser/policy/policy_browsertest.cc https://codereview.chromium.org/23427003/patch/10001/56004 ...
7 years, 3 months ago (2013-08-27 18:08:41 UTC) #15
bartfab (slow)
lgtm https://codereview.chromium.org/23427003/diff/20001/chrome/browser/background/background_contents_service.cc File chrome/browser/background/background_contents_service.cc (right): https://codereview.chromium.org/23427003/diff/20001/chrome/browser/background/background_contents_service.cc#newcode229 chrome/browser/background/background_contents_service.cc:229: void ShowBalloon(const Extension* extension, Profile* profile, bool isForced) ...
7 years, 3 months ago (2013-08-27 19:21:30 UTC) #16
anitawoodruff
https://codereview.chromium.org/23427003/diff/10001/chrome/browser/background/background_contents_service.cc File chrome/browser/background/background_contents_service.cc (right): https://codereview.chromium.org/23427003/diff/10001/chrome/browser/background/background_contents_service.cc#newcode514 chrome/browser/background/background_contents_service.cc:514: // Remove any "app/extension has crashed" balloons. On 2013/08/27 ...
7 years, 3 months ago (2013-08-28 09:03:06 UTC) #17
Andrew T Wilson (Slow)
Mostly looks good, with just that one comment about getting rid of WeakPtrFactory. We have ...
7 years, 3 months ago (2013-08-28 17:37:34 UTC) #18
bartfab (slow)
https://codereview.chromium.org/23427003/diff/55001/chrome/browser/background/background_contents_service.cc File chrome/browser/background/background_contents_service.cc (right): https://codereview.chromium.org/23427003/diff/55001/chrome/browser/background/background_contents_service.cc#newcode560 chrome/browser/background/background_contents_service.cc:560: weak_factory_.GetWeakPtr(), extension_id, profile), On 2013/08/28 17:37:35, Andrew T Wilson ...
7 years, 3 months ago (2013-08-28 17:43:00 UTC) #19
anitawoodruff
On 2013/08/28 17:37:34, Andrew T Wilson wrote: > We have a test to test that ...
7 years, 3 months ago (2013-08-29 10:16:02 UTC) #20
Andrew T Wilson (Slow)
On 2013/08/29 10:16:02, anitawoodruff wrote: > On 2013/08/28 17:37:34, Andrew T Wilson wrote: > > ...
7 years, 3 months ago (2013-08-29 11:10:40 UTC) #21
Andrew T Wilson (Slow)
On 2013/08/28 17:43:00, bartfab wrote: > https://codereview.chromium.org/23427003/diff/55001/chrome/browser/background/background_contents_service.cc > File chrome/browser/background/background_contents_service.cc (right): > > https://codereview.chromium.org/23427003/diff/55001/chrome/browser/background/background_contents_service.cc#newcode560 > ...
7 years, 3 months ago (2013-08-29 11:12:31 UTC) #22
anitawoodruff
+ Kalman for review as another owner of the chrome/test/data/extensions/ directory, since no word from ...
7 years, 3 months ago (2013-08-29 11:13:52 UTC) #23
anitawoodruff
https://codereview.chromium.org/23427003/diff/55001/chrome/browser/background/background_contents_service.cc File chrome/browser/background/background_contents_service.cc (right): https://codereview.chromium.org/23427003/diff/55001/chrome/browser/background/background_contents_service.cc#newcode560 chrome/browser/background/background_contents_service.cc:560: weak_factory_.GetWeakPtr(), extension_id, profile), On 2013/08/28 17:37:35, Andrew T Wilson ...
7 years, 3 months ago (2013-08-29 12:02:36 UTC) #24
bartfab (slow)
still lgtm https://codereview.chromium.org/23427003/diff/73001/chrome/browser/background/background_contents_service.cc File chrome/browser/background/background_contents_service.cc (right): https://codereview.chromium.org/23427003/diff/73001/chrome/browser/background/background_contents_service.cc#newcode265 chrome/browser/background/background_contents_service.cc:265: !g_browser_process->profile_manager()->IsValidProfile(profile)) Nit 1: un-indent by two spaces. ...
7 years, 3 months ago (2013-08-29 12:06:24 UTC) #25
not at google - send to devlin
lgtm, though we removed that owners file now.
7 years, 3 months ago (2013-08-29 15:03:17 UTC) #26
anitawoodruff
Drew, I take your point about unit tests being a good idea. I spent some ...
7 years, 3 months ago (2013-08-29 16:46:19 UTC) #27
Andrew T Wilson (Slow)
lgtm
7 years, 3 months ago (2013-08-29 16:52:19 UTC) #28
bartfab (slow)
I am dcommitting the extension update separately because the CQ cannot handle binary files. See ...
7 years, 3 months ago (2013-08-30 11:04:39 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/anitawoodruff@chromium.org/23427003/89001
7 years, 3 months ago (2013-08-30 12:40:57 UTC) #30
commit-bot: I haz the power
7 years, 3 months ago (2013-08-30 15:42:03 UTC) #31
Message was sent while issue was closed.
Change committed as 220586

Powered by Google App Engine
This is Rietveld 408576698