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

Issue 875423002: Don't notify existing observers in SupervisedUserWhitelistService::AddSiteListsChangedCallback(). (Closed)

Created:
5 years, 11 months ago by Bernhard Bauer
Modified:
5 years, 10 months ago
Reviewers:
Marc Treib
CC:
chromium-reviews, pam+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't notify existing observers in SupervisedUserWhitelistService::AddSiteListsChangedCallback(). The additional callbacks caused the SupervisedUserUrlFilter to update its filter unnecessarily, which in turn flakily quit the observer run loop too early. This CL fixes the flakiness by using the main thread message loop for the SupervisedUserUrlFilter (removing non-determinism), spreading out the synchronization points for site list updates and URL filter updates, and adding additional sanity checks about observed changes. BUG=452071 Committed: https://crrev.com/1ec543761663537283abbe2f2ddef51b6320f995 Cr-Commit-Position: refs/heads/master@{#313483}

Patch Set 1 #

Patch Set 2 : x #

Patch Set 3 : o #

Total comments: 2

Patch Set 4 : typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -68 lines) Patch
M chrome/browser/supervised_user/supervised_user_service_unittest.cc View 1 2 3 9 chunks +127 lines, -54 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_url_filter.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_url_filter.cc View 1 8 chunks +9 lines, -10 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_whitelist_service.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_whitelist_service.cc View 1 2 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Bernhard Bauer
Please review!
5 years, 11 months ago (2015-01-27 17:30:35 UTC) #2
Marc Treib
LGTM! https://codereview.chromium.org/875423002/diff/40001/chrome/browser/supervised_user/supervised_user_service_unittest.cc File chrome/browser/supervised_user/supervised_user_service_unittest.cc (right): https://codereview.chromium.org/875423002/diff/40001/chrome/browser/supervised_user/supervised_user_service_unittest.cc#newcode61 chrome/browser/supervised_user/supervised_user_service_unittest.cc:61: // |quit_called_| will be initialied in Reset(). typo: ...
5 years, 10 months ago (2015-01-28 09:01:15 UTC) #3
Bernhard Bauer
https://codereview.chromium.org/875423002/diff/40001/chrome/browser/supervised_user/supervised_user_service_unittest.cc File chrome/browser/supervised_user/supervised_user_service_unittest.cc (right): https://codereview.chromium.org/875423002/diff/40001/chrome/browser/supervised_user/supervised_user_service_unittest.cc#newcode61 chrome/browser/supervised_user/supervised_user_service_unittest.cc:61: // |quit_called_| will be initialied in Reset(). On 2015/01/28 ...
5 years, 10 months ago (2015-01-28 10:49:58 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/875423002/60001
5 years, 10 months ago (2015-01-28 10:58:11 UTC) #6
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 10 months ago (2015-01-28 11:58:09 UTC) #7
commit-bot: I haz the power
5 years, 10 months ago (2015-01-28 12:01:04 UTC) #8
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1ec543761663537283abbe2f2ddef51b6320f995
Cr-Commit-Position: refs/heads/master@{#313483}

Powered by Google App Engine
This is Rietveld 408576698