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

Issue 2399823002: Extract the SafeSearch client to a separate directory (Closed)

Created:
4 years, 2 months ago by msramek
Modified:
4 years, 2 months ago
CC:
chromium-reviews, pam+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extract the SafeSearch client to a separate directory 1. Extract SupervisedUserAsyncURLChecker and its unittest to a separate directory to make it reusable. Rename it to SafeSearchURLChecker as it's now available not only to supervised users, and as its asynchronicity does not need to be stressed (as there is no synchronous counterpart). 2. Decople it from the suprevised_users/ code; namely, introduce a SafeSearchURLChecker::Classification enum that has a direct mapping to SupervisedUserURLFilter::FilteringBehavior instead of using FilteringBehavior directly. 3. Update the callsites in supervised_users/, headers, etc. No functional changes to the code have been made in this CL. BUG=653479 Committed: https://crrev.com/d8fd3b32ad7ee05cbfe2ada60e1d7086ac5e6255 Cr-Commit-Position: refs/heads/master@{#424149}

Patch Set 1 #

Total comments: 15

Patch Set 2 : Addressed comments, formatted #

Patch Set 3 : Renamed to safe_search_api #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -606 lines) Patch
M chrome/browser/BUILD.gn View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
A + chrome/browser/safe_search_api/OWNERS View 1 2 1 chunk +0 lines, -1 line 0 comments Download
A chrome/browser/safe_search_api/safe_search_url_checker.h View 1 2 1 chunk +68 lines, -0 lines 0 comments Download
A + chrome/browser/safe_search_api/safe_search_url_checker.cc View 1 2 7 chunks +29 lines, -36 lines 0 comments Download
A + chrome/browser/safe_search_api/safe_search_url_checker_unittest.cc View 1 2 9 chunks +42 lines, -45 lines 0 comments Download
D chrome/browser/supervised_user/experimental/supervised_user_async_url_checker.h View 1 chunk +0 lines, -70 lines 0 comments Download
D chrome/browser/supervised_user/experimental/supervised_user_async_url_checker.cc View 1 chunk +0 lines, -222 lines 0 comments Download
D chrome/browser/supervised_user/experimental/supervised_user_async_url_checker_unittest.cc View 1 chunk +0 lines, -223 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_url_filter.h View 1 2 4 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_url_filter.cc View 1 4 chunks +18 lines, -3 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 28 (16 generated)
msramek
Hi Marc, This is the separation of the SafeSearch client that we chatted about before. ...
4 years, 2 months ago (2016-10-06 11:24:32 UTC) #2
Marc Treib
lgtm Nice! Just a few nits. https://codereview.chromium.org/2399823002/diff/1/chrome/browser/safe_search/OWNERS File chrome/browser/safe_search/OWNERS (right): https://codereview.chromium.org/2399823002/diff/1/chrome/browser/safe_search/OWNERS#newcode1 chrome/browser/safe_search/OWNERS:1: treib@chromium.org Please add ...
4 years, 2 months ago (2016-10-06 13:16:42 UTC) #7
msramek
Thanks Marc! +Bernhard PTAL to confirm your inclusion in OWNERS +Jochen PTAL for a new ...
4 years, 2 months ago (2016-10-06 15:08:41 UTC) #14
Marc Treib
Thanks! https://codereview.chromium.org/2399823002/diff/1/chrome/browser/safe_search/safe_search_url_checker.cc File chrome/browser/safe_search/safe_search_url_checker.cc (right): https://codereview.chromium.org/2399823002/diff/1/chrome/browser/safe_search/safe_search_url_checker.cc#newcode212 chrome/browser/safe_search/safe_search_url_checker.cc:212: // TODO(msramek): Should we rename the histogram? On ...
4 years, 2 months ago (2016-10-06 15:17:15 UTC) #15
Bernhard Bauer
LGTM, but should we maybe call the directory safe_search_api?
4 years, 2 months ago (2016-10-06 15:21:12 UTC) #16
msramek
On 2016/10/06 15:21:12, Bernhard Bauer wrote: > LGTM, but should we maybe call the directory ...
4 years, 2 months ago (2016-10-07 08:54:52 UTC) #19
msramek
https://codereview.chromium.org/2399823002/diff/1/chrome/browser/safe_search/safe_search_url_checker.cc File chrome/browser/safe_search/safe_search_url_checker.cc (right): https://codereview.chromium.org/2399823002/diff/1/chrome/browser/safe_search/safe_search_url_checker.cc#newcode212 chrome/browser/safe_search/safe_search_url_checker.cc:212: // TODO(msramek): Should we rename the histogram? On 2016/10/06 ...
4 years, 2 months ago (2016-10-07 08:59:51 UTC) #20
jochen (gone - plz use gerrit)
lgtm
4 years, 2 months ago (2016-10-10 12:47:03 UTC) #21
msramek
Thanks!
4 years, 2 months ago (2016-10-10 12:50:16 UTC) #22
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/2399823002/60001
4 years, 2 months ago (2016-10-10 12:50:33 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 2 months ago (2016-10-10 14:36:39 UTC) #26
commit-bot: I haz the power
4 years, 2 months ago (2016-10-10 14:39:09 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d8fd3b32ad7ee05cbfe2ada60e1d7086ac5e6255
Cr-Commit-Position: refs/heads/master@{#424149}

Powered by Google App Engine
This is Rietveld 408576698