|
|
DescriptionUpdate component extension reload backoff logic.
Responding to wez@'s comments in crrev.com/2281323002.
This change removes a BackoffEntry for a component extension if it has loaded and there has been no additional failures for that extension within 60s.
BUG=639104
Committed: https://crrev.com/1c2329116c6d802429f431ec322b1f8ccc8143f4
Cr-Commit-Position: refs/heads/master@{#417315}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Changes per wez@'s comments. #
Total comments: 2
Patch Set 3 : Changes per wez@'s comment. #
Messages
Total messages: 39 (27 generated)
Patchset #2 (id:20001) has been deleted
Patchset #1 (id:1) has been deleted
Description was changed from ========== BUG= ========== to ========== BUG=639104 ==========
Description was changed from ========== BUG=639104 ========== to ========== Make component extension reload backoff logic more robust. Responding to wez@'s comments in crrev.com/2281323002. Changes include: - Clearing any remaining BackoffEntrys in the BackgroundContentsService destructor. Extensions (including components) aren't "uninstalled" or "unloaded" in situations like closing the browser session. This cleans up any BackoffEntrys. - Removing a BackoffEntry for a component extension if it has loaded and has not 'failed' within 60s. BUG=639104 ==========
Patchset #1 (id:40001) has been deleted
Description was changed from ========== Make component extension reload backoff logic more robust. Responding to wez@'s comments in crrev.com/2281323002. Changes include: - Clearing any remaining BackoffEntrys in the BackgroundContentsService destructor. Extensions (including components) aren't "uninstalled" or "unloaded" in situations like closing the browser session. This cleans up any BackoffEntrys. - Removing a BackoffEntry for a component extension if it has loaded and has not 'failed' within 60s. BUG=639104 ========== to ========== Update component extension reload backoff logic. Responding to wez@'s comments in crrev.com/2281323002. Changes include: - Clearing any remaining BackoffEntrys in the BackgroundContentsService destructor. Extensions (including components) aren't "uninstalled" or "unloaded" in situations like closing the browser session. This cleans up any BackoffEntrys. - Removing a BackoffEntry for a component extension if it has loaded and has not 'failed' within 60s. BUG=639104 ==========
apacible@chromium.org changed reviewers: + atwilson@chromium.org, wez@chromium.org
PTAL, thanks!
The CQ bit was checked by apacible@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2310463002/diff/60001/chrome/browser/backgrou... File chrome/browser/background/background_contents_service.cc (right): https://codereview.chromium.org/2310463002/diff/60001/chrome/browser/backgrou... chrome/browser/background/background_contents_service.cc:301: backoff_map_.clear(); This will just clear the map on browser shutdown, which will happen anyway since it's a member of this class - what I had in mind was actually clearing the backoff entry if the extension is e.g. uninstalled, stopped, etc, so you don't "leak" the BackoffEntrys over time while running. https://codereview.chromium.org/2310463002/diff/60001/chrome/browser/backgrou... chrome/browser/background/background_contents_service.cc:497: base::Unretained(this), extension->id(), entry->failure_count()), What happens if you reach here but the BackgroundContentsService gets deleted before 60s have elapsed? https://codereview.chromium.org/2310463002/diff/60001/chrome/browser/backgrou... chrome/browser/background/background_contents_service.cc:639: // since loading. You mean no additional failure since expected_failure_count was reached?
The CQ bit was checked by apacible@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #2 (id:80001) has been deleted
The CQ bit was checked by apacible@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2310463002/diff/60001/chrome/browser/backgrou... File chrome/browser/background/background_contents_service.cc (right): https://codereview.chromium.org/2310463002/diff/60001/chrome/browser/backgrou... chrome/browser/background/background_contents_service.cc:301: backoff_map_.clear(); On 2016/09/02 23:54:44, Wez wrote: > This will just clear the map on browser shutdown, which will happen anyway since > it's a member of this class - what I had in mind was actually clearing the > backoff entry if the extension is e.g. uninstalled, stopped, etc, so you don't > "leak" the BackoffEntrys over time while running. Component extensions are "installed" but are loaded (when they should start running) and unloaded (when they crash/terminate), rather than "uninstalled". User-controlled extensions can be installed/uninstalled. Talked offline with wez@ - removing this line and renaming |backoff_map_| to | component_backoff_map_|. https://codereview.chromium.org/2310463002/diff/60001/chrome/browser/backgrou... chrome/browser/background/background_contents_service.cc:497: base::Unretained(this), extension->id(), entry->failure_count()), On 2016/09/02 23:54:44, Wez wrote: > What happens if you reach here but the BackgroundContentsService gets deleted > before 60s have elapsed? Talked offline -- switching to using weak ptr. https://codereview.chromium.org/2310463002/diff/60001/chrome/browser/backgrou... chrome/browser/background/background_contents_service.cc:639: // since loading. On 2016/09/02 23:54:43, Wez wrote: > You mean no additional failure since expected_failure_count was reached? Correct, or more specifically, "no additional failure for this particular extension".
Description was changed from ========== Update component extension reload backoff logic. Responding to wez@'s comments in crrev.com/2281323002. Changes include: - Clearing any remaining BackoffEntrys in the BackgroundContentsService destructor. Extensions (including components) aren't "uninstalled" or "unloaded" in situations like closing the browser session. This cleans up any BackoffEntrys. - Removing a BackoffEntry for a component extension if it has loaded and has not 'failed' within 60s. BUG=639104 ========== to ========== Update component extension reload backoff logic. Responding to wez@'s comments in crrev.com/2281323002. This change removes a BackoffEntry for a component extension if it has loaded and there has been no additional failures for that extension within 60s. BUG=639104 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm https://codereview.chromium.org/2310463002/diff/100001/chrome/browser/backgro... File chrome/browser/background/background_contents_service.cc (right): https://codereview.chromium.org/2310463002/diff/100001/chrome/browser/backgro... chrome/browser/background/background_contents_service.cc:496: base::TimeDelta::FromMilliseconds(60000 /* 60 seconds */)); nit: Just use FromSeconds directly?
The CQ bit was checked by apacible@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2310463002/diff/100001/chrome/browser/backgro... File chrome/browser/background/background_contents_service.cc (right): https://codereview.chromium.org/2310463002/diff/100001/chrome/browser/backgro... chrome/browser/background/background_contents_service.cc:496: base::TimeDelta::FromMilliseconds(60000 /* 60 seconds */)); On 2016/09/03 06:48:34, Wez wrote: > nit: Just use FromSeconds directly? Done.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Friendly ping!
atwilson@ - PTAL, thanks!
lgtm
lgtm lgtm
The CQ bit was checked by apacible@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from wez@chromium.org Link to the patchset: https://codereview.chromium.org/2310463002/#ps120001 (title: "Changes per wez@'s comment.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Update component extension reload backoff logic. Responding to wez@'s comments in crrev.com/2281323002. This change removes a BackoffEntry for a component extension if it has loaded and there has been no additional failures for that extension within 60s. BUG=639104 ========== to ========== Update component extension reload backoff logic. Responding to wez@'s comments in crrev.com/2281323002. This change removes a BackoffEntry for a component extension if it has loaded and there has been no additional failures for that extension within 60s. BUG=639104 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:120001)
Message was sent while issue was closed.
Description was changed from ========== Update component extension reload backoff logic. Responding to wez@'s comments in crrev.com/2281323002. This change removes a BackoffEntry for a component extension if it has loaded and there has been no additional failures for that extension within 60s. BUG=639104 ========== to ========== Update component extension reload backoff logic. Responding to wez@'s comments in crrev.com/2281323002. This change removes a BackoffEntry for a component extension if it has loaded and there has been no additional failures for that extension within 60s. BUG=639104 Committed: https://crrev.com/1c2329116c6d802429f431ec322b1f8ccc8143f4 Cr-Commit-Position: refs/heads/master@{#417315} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/1c2329116c6d802429f431ec322b1f8ccc8143f4 Cr-Commit-Position: refs/heads/master@{#417315} |