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

Issue 2873123004: [subresource_filter] Duplicate settings notifications should not be logged (Closed)

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

Description

[subresource_filter] Duplicate settings notifications should not be logged There are places in the code where global content setting changes somehow notify our observer multiple times in a row. To guard against this in the code, we cache the global setting in the settings observer and only log metrics if a notification is received which ended up changing the cached value. Places which trigger these duplicate notifications should probably be fixed too. BUG=721396 Review-Url: https://codereview.chromium.org/2873123004 Cr-Commit-Position: refs/heads/master@{#471399} Committed: https://chromium.googlesource.com/chromium/src/+/5ce9a842e75528da201d21f2571eb7dba991d044

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix test #

Total comments: 4

Patch Set 3 : shivanisha review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -3 lines) Patch
M chrome/browser/subresource_filter/subresource_filter_content_settings_manager.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/subresource_filter/subresource_filter_content_settings_manager.cc View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/subresource_filter/subresource_filter_content_settings_manager_unittest.cc View 1 2 2 chunks +23 lines, -3 lines 0 comments Download

Messages

Total messages: 32 (16 generated)
Charlie Harrison
msramek: WDYT about this patch? As mentioned in the linked bug I saw that flipping ...
3 years, 7 months ago (2017-05-11 18:23:37 UTC) #2
Charlie Harrison
On 2017/05/11 18:23:37, Charlie Harrison wrote: > msramek: WDYT about this patch? As mentioned in ...
3 years, 7 months ago (2017-05-11 18:24:46 UTC) #3
msramek
On 2017/05/11 18:24:46, Charlie Harrison wrote: > On 2017/05/11 18:23:37, Charlie Harrison wrote: > > ...
3 years, 7 months ago (2017-05-12 11:36:26 UTC) #4
msramek
LGTM. This makes sense, but I have some questions :) https://codereview.chromium.org/2873123004/diff/1/chrome/browser/subresource_filter/subresource_filter_content_settings_manager_unittest.cc File chrome/browser/subresource_filter/subresource_filter_content_settings_manager_unittest.cc (right): https://codereview.chromium.org/2873123004/diff/1/chrome/browser/subresource_filter/subresource_filter_content_settings_manager_unittest.cc#newcode255 ...
3 years, 7 months ago (2017-05-12 11:39:57 UTC) #5
Charlie Harrison
On 2017/05/12 11:36:26, msramek wrote: > On 2017/05/11 18:24:46, Charlie Harrison wrote: > > On ...
3 years, 7 months ago (2017-05-12 12:16:30 UTC) #6
Charlie Harrison
https://codereview.chromium.org/2873123004/diff/1/chrome/browser/subresource_filter/subresource_filter_content_settings_manager_unittest.cc File chrome/browser/subresource_filter/subresource_filter_content_settings_manager_unittest.cc (right): https://codereview.chromium.org/2873123004/diff/1/chrome/browser/subresource_filter/subresource_filter_content_settings_manager_unittest.cc#newcode255 chrome/browser/subresource_filter/subresource_filter_content_settings_manager_unittest.cc:255: IgnoreDuplicateGlobalSettings) { On 2017/05/12 11:39:56, msramek wrote: > Does ...
3 years, 7 months ago (2017-05-12 12:21:19 UTC) #7
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/2873123004/1
3 years, 7 months ago (2017-05-12 12:55:46 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/452950)
3 years, 7 months ago (2017-05-12 13:26:01 UTC) #11
Charlie Harrison
Had to fix a test trivially so that we always set away from what the ...
3 years, 7 months ago (2017-05-12 14:10:50 UTC) #14
Charlie Harrison
shivanisha: Would you take a quick look at this too?
3 years, 7 months ago (2017-05-12 14:11:21 UTC) #16
msramek
Still LGTM.
3 years, 7 months ago (2017-05-12 15:11:54 UTC) #19
shivanisha
https://codereview.chromium.org/2873123004/diff/20001/chrome/browser/subresource_filter/subresource_filter_content_settings_manager.cc File chrome/browser/subresource_filter/subresource_filter_content_settings_manager.cc (right): https://codereview.chromium.org/2873123004/diff/20001/chrome/browser/subresource_filter/subresource_filter_content_settings_manager.cc#newcode151 chrome/browser/subresource_filter/subresource_filter_content_settings_manager.cc:151: // Ignore changes which retain the status quo. This ...
3 years, 7 months ago (2017-05-12 16:53:21 UTC) #20
Charlie Harrison
https://codereview.chromium.org/2873123004/diff/20001/chrome/browser/subresource_filter/subresource_filter_content_settings_manager.cc File chrome/browser/subresource_filter/subresource_filter_content_settings_manager.cc (right): https://codereview.chromium.org/2873123004/diff/20001/chrome/browser/subresource_filter/subresource_filter_content_settings_manager.cc#newcode151 chrome/browser/subresource_filter/subresource_filter_content_settings_manager.cc:151: // Ignore changes which retain the status quo. This ...
3 years, 7 months ago (2017-05-12 17:19:11 UTC) #22
shivanisha
On 2017/05/12 at 17:19:11, csharrison wrote: > https://codereview.chromium.org/2873123004/diff/20001/chrome/browser/subresource_filter/subresource_filter_content_settings_manager.cc > File chrome/browser/subresource_filter/subresource_filter_content_settings_manager.cc (right): > > https://codereview.chromium.org/2873123004/diff/20001/chrome/browser/subresource_filter/subresource_filter_content_settings_manager.cc#newcode151 ...
3 years, 7 months ago (2017-05-12 19:07:44 UTC) #26
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/2873123004/40001
3 years, 7 months ago (2017-05-12 19:09:58 UTC) #29
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 19:16:45 UTC) #32
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/5ce9a842e75528da201d21f2571e...

Powered by Google App Engine
This is Rietveld 408576698