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

Issue 10832237: Allow chrome.management.setEnabled() to re-enable crashed extensions. (Closed)

Created:
8 years, 4 months ago by mitchellwrosen
Modified:
8 years, 3 months ago
CC:
chromium-reviews, Aaron Boodman
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Allow chrome.management.setEnabled() to re-enable crashed extensions. BUG=131977 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153992

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Fixes #

Total comments: 1

Patch Set 3 : Made setEnabled(false) a no-op #

Patch Set 4 : Fixed possible race condition, but it wasn't the problem #

Patch Set 5 : Navigate to about:crash instead of using base::KillProcess #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -13 lines) Patch
M chrome/browser/extensions/api/management/management_api.cc View 1 2 3 4 1 chunk +15 lines, -1 line 3 comments Download
M chrome/browser/extensions/api/management/management_api_browsertest.cc View 1 2 3 4 5 chunks +41 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_crash_recovery_browsertest.cc View 1 2 3 4 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 27 (0 generated)
mitchellwrosen
8 years, 4 months ago (2012-08-10 00:34:06 UTC) #1
asargent_no_longer_on_chrome
https://chromiumcodereview.appspot.com/10832237/diff/3001/chrome/browser/extensions/api/management/management_api.cc File chrome/browser/extensions/api/management/management_api.cc (right): https://chromiumcodereview.appspot.com/10832237/diff/3001/chrome/browser/extensions/api/management/management_api.cc#newcode413 chrome/browser/extensions/api/management/management_api.cc:413: unloaded_extension_paths().find(extension_id_); I'm not sure operating on unloaded extensions is ...
8 years, 4 months ago (2012-08-10 20:26:21 UTC) #2
mitchellwrosen
https://chromiumcodereview.appspot.com/10832237/diff/3001/chrome/browser/extensions/api/management/management_api.cc File chrome/browser/extensions/api/management/management_api.cc (right): https://chromiumcodereview.appspot.com/10832237/diff/3001/chrome/browser/extensions/api/management/management_api.cc#newcode413 chrome/browser/extensions/api/management/management_api.cc:413: unloaded_extension_paths().find(extension_id_); On 2012/08/10 20:26:21, Antony Sargent wrote: > I'm ...
8 years, 4 months ago (2012-08-10 23:15:26 UTC) #3
asargent_no_longer_on_chrome
lgtm w/ one nit > The expected behavior is that the extension is reloaded and ...
8 years, 4 months ago (2012-08-13 19:10:34 UTC) #4
mitchellwrosen
On 2012/08/13 19:10:34, Antony Sargent wrote: > lgtm w/ one nit > > > > ...
8 years, 4 months ago (2012-08-14 00:51:31 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mitchellwrosen@chromium.org/10832237/10001
8 years, 4 months ago (2012-08-14 17:42:32 UTC) #6
asargent_no_longer_on_chrome
If ReloadExtension doesn't also cause the extension to become enabled, then that's probably ok too, ...
8 years, 4 months ago (2012-08-14 17:51:38 UTC) #7
asargent_no_longer_on_chrome
Sorry, didn't complete that last sentence. It was going to be the following: Also, we ...
8 years, 4 months ago (2012-08-14 17:52:56 UTC) #8
mitchellwrosen
On 2012/08/14 17:52:56, Antony Sargent wrote: > Sorry, didn't complete that last sentence. It was ...
8 years, 4 months ago (2012-08-14 17:54:39 UTC) #9
asargent_no_longer_on_chrome
A new bug is fine, this CL should be good to go as-is. On Tue, ...
8 years, 4 months ago (2012-08-14 17:55:51 UTC) #10
commit-bot: I haz the power
Try job failure for 10832237-10001 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 4 months ago (2012-08-14 20:39:22 UTC) #11
mitchellwrosen
Hrm, investigating this problem on Windows now. It's hanging on the call to WaitForExtensionCrash(), after ...
8 years, 4 months ago (2012-08-14 22:23:06 UTC) #12
mitchellwrosen
On 2012/08/14 22:23:06, mitchellwrosen wrote: > Hrm, investigating this problem on Windows now. It's hanging ...
8 years, 4 months ago (2012-08-14 23:10:54 UTC) #13
asargent_no_longer_on_chrome
It might work to post a task to crash the extension, and then call WaitForExtensionCrash. ...
8 years, 4 months ago (2012-08-14 23:35:37 UTC) #14
mitchellwrosen
On 2012/08/14 23:35:37, Antony Sargent wrote: > It might work to post a task to ...
8 years, 4 months ago (2012-08-22 22:40:41 UTC) #15
asargent_no_longer_on_chrome
> Doesn't a WindowedNotificationObserver accomplish the same thing? The listener > is established before the ...
8 years, 4 months ago (2012-08-23 17:01:57 UTC) #16
mitchellwrosen
On 2012/08/23 17:01:57, Antony Sargent wrote: > > Doesn't a WindowedNotificationObserver accomplish the same thing? ...
8 years, 4 months ago (2012-08-23 17:04:45 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mitchellwrosen@chromium.org/10832237/23001
8 years, 3 months ago (2012-08-28 18:14:15 UTC) #18
commit-bot: I haz the power
Try job failure for 10832237-23001 (retry) on linux_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 3 months ago (2012-08-28 20:11:55 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mitchellwrosen@chromium.org/10832237/23001
8 years, 3 months ago (2012-08-28 20:24:30 UTC) #20
commit-bot: I haz the power
Try job failure for 10832237-23001 (retry) on win_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 3 months ago (2012-08-28 23:40:14 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mitchellwrosen@chromium.org/10832237/23001
8 years, 3 months ago (2012-08-29 15:33:01 UTC) #22
commit-bot: I haz the power
Try job failure for 10832237-23001 (retry) on linux_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 3 months ago (2012-08-29 17:36:18 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mitchellwrosen@chromium.org/10832237/23001
8 years, 3 months ago (2012-08-29 19:59:34 UTC) #24
commit-bot: I haz the power
Change committed as 153992
8 years, 3 months ago (2012-08-29 22:21:08 UTC) #25
Aaron Boodman
https://chromiumcodereview.appspot.com/10832237/diff/23001/chrome/browser/extensions/api/management/management_api.cc File chrome/browser/extensions/api/management/management_api.cc (right): https://chromiumcodereview.appspot.com/10832237/diff/23001/chrome/browser/extensions/api/management/management_api.cc#newcode457 chrome/browser/extensions/api/management/management_api.cc:457: // The extension may have been unloaded due to ...
8 years, 3 months ago (2012-09-04 22:47:19 UTC) #26
mitchellwrosen
8 years, 3 months ago (2012-09-04 23:00:08 UTC) #27
https://chromiumcodereview.appspot.com/10832237/diff/23001/chrome/browser/ext...
File chrome/browser/extensions/api/management/management_api.cc (right):

https://chromiumcodereview.appspot.com/10832237/diff/23001/chrome/browser/ext...
chrome/browser/extensions/api/management/management_api.cc:460:
service()->ReloadExtension(extension_id_);
On 2012/09/04 22:47:19, Aaron Boodman wrote:
> Why this special case? Just make this extension affect terminated extensions
> exactly as it does non-terminated ones.

Isn't it a special case, though? Terminated extensions have to be reloaded.

Powered by Google App Engine
This is Rietveld 408576698