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

Issue 2871013002: [subresource_filter] Refactor activation suppression (Closed)

Created:
3 years, 7 months ago by Charlie Harrison
Modified:
3 years, 7 months ago
Reviewers:
shivanisha, engedy
CC:
chromium-reviews, darin-cc_chromium.org, jam, subresource-filter-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[subresource_filter] Refactor activation suppression Right now, we query for activation suppression in two places 1. Computing ActivationDecision in the driver_factory 2. Right before sending the Activation IPC in the throttle_manager Since (1) fully controls notifying page activation to the throttle_manager, (2) is completely unnecessary. This CL removes that functionality from the throttle manager delegate. BUG=689487 Review-Url: https://codereview.chromium.org/2871013002 Cr-Commit-Position: refs/heads/master@{#470765} Committed: https://chromium.googlesource.com/chromium/src/+/19811b689efb15501224d8c8151abe0bbc8392a6

Patch Set 1 #

Patch Set 2 : just remove the suppression call #

Total comments: 4

Patch Set 3 : rebase on #470635 #

Messages

Total messages: 37 (23 generated)
Charlie Harrison
shivanisha, engedy: PTAL? I feel this change will make landing https://codereview.chromium.org/2859783002 easier.
3 years, 7 months ago (2017-05-09 21:28:09 UTC) #3
Charlie Harrison
Hm thinking about it I think we need s/OnWillTriggerActivation/OnActivationComputed/ or something similar so the code ...
3 years, 7 months ago (2017-05-09 21:40:40 UTC) #5
Charlie Harrison
The current CL just removes the activation suppression call. I'll do the OnPageActivationComputed behavior in ...
3 years, 7 months ago (2017-05-09 22:01:04 UTC) #9
engedy
LGTM, thanks! https://codereview.chromium.org/2871013002/diff/20001/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc File components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc (left): https://codereview.chromium.org/2871013002/diff/20001/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc#oldcode79 components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc:79: it->second->NotifyPageActivationWithRuleset(EnsureRulesetHandle(), Unrelated question: after https://codereview.chromium.org/2844063002/, this might ...
3 years, 7 months ago (2017-05-09 22:13:35 UTC) #10
Charlie Harrison
https://codereview.chromium.org/2871013002/diff/20001/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc File components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc (left): https://codereview.chromium.org/2871013002/diff/20001/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc#oldcode79 components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc:79: it->second->NotifyPageActivationWithRuleset(EnsureRulesetHandle(), On 2017/05/09 22:13:35, engedy wrote: > Unrelated question: ...
3 years, 7 months ago (2017-05-09 22:27:18 UTC) #11
Charlie Harrison
https://codereview.chromium.org/2871013002/diff/20001/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc File components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc (left): https://codereview.chromium.org/2871013002/diff/20001/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc#oldcode79 components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc:79: it->second->NotifyPageActivationWithRuleset(EnsureRulesetHandle(), On 2017/05/09 22:27:17, Charlie Harrison wrote: > On ...
3 years, 7 months ago (2017-05-09 22:33:58 UTC) #12
engedy
https://codereview.chromium.org/2871013002/diff/20001/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc File components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc (left): https://codereview.chromium.org/2871013002/diff/20001/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc#oldcode79 components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc:79: it->second->NotifyPageActivationWithRuleset(EnsureRulesetHandle(), On 2017/05/09 22:33:58, Charlie Harrison wrote: > On ...
3 years, 7 months ago (2017-05-09 22:55:48 UTC) #13
shivanisha
On 2017/05/09 at 22:55:48, engedy wrote: > https://codereview.chromium.org/2871013002/diff/20001/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc > File components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc (left): > > https://codereview.chromium.org/2871013002/diff/20001/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc#oldcode79 ...
3 years, 7 months ago (2017-05-10 17:18:34 UTC) #20
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/2871013002/20001
3 years, 7 months ago (2017-05-10 17:20:45 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/432729)
3 years, 7 months ago (2017-05-10 17:35:04 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/2871013002/40001
3 years, 7 months ago (2017-05-10 18:58:59 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/441139)
3 years, 7 months ago (2017-05-10 23:14:50 UTC) #32
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/2871013002/40001
3 years, 7 months ago (2017-05-10 23:29:20 UTC) #34
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 00:47:54 UTC) #37
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/19811b689efb15501224d8c8151a...

Powered by Google App Engine
This is Rietveld 408576698