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

Issue 2289853002: Extend the origin-based deletion in TemplateURLService to an URL filter (Closed)

Created:
4 years, 3 months ago by msramek
Modified:
4 years, 3 months ago
Reviewers:
droger, Peter Kasting
CC:
chromium-reviews, markusheintz_, msramek+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extend the origin-based deletion in TemplateURLService to a URL filter The current implementation allows filtering for one origin. The GURL->bool filter that is nowadays used by BrowsingDataRemover allows specifying whitelists or blacklists of multiple URLs (typically entire origins). TBR=droger@chromium.org BUG=589586 Committed: https://crrev.com/db42f899495a51c7645dfa0ceb97f589fa346e5c Cr-Commit-Position: refs/heads/master@{#415614}

Patch Set 1 #

Patch Set 2 : Updated test, iOS #

Total comments: 9

Patch Set 3 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -25 lines) Patch
M chrome/browser/browsing_data/browsing_data_remover.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 2 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_unittest.cc View 1 4 chunks +10 lines, -5 lines 0 comments Download
M components/search_engines/template_url_service.h View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
M components/search_engines/template_url_service.cc View 1 3 chunks +8 lines, -7 lines 0 comments Download
M ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 34 (21 generated)
msramek
Hi Peter, Please have a look! Thanks, Martin
4 years, 3 months ago (2016-08-29 16:58:12 UTC) #4
msramek
Oops... please hold on until I make the bots green :) Codesearch links are apparently ...
4 years, 3 months ago (2016-08-29 17:40:54 UTC) #7
msramek
Alright, the tests are green now :) I realized that TemplateURLService actually works with URLs, ...
4 years, 3 months ago (2016-08-30 11:55:20 UTC) #12
Peter Kasting
Please update the CL title and description (origin -> URL?) LGTM https://codereview.chromium.org/2289853002/diff/20001/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (right): ...
4 years, 3 months ago (2016-08-31 04:30:29 UTC) #13
msramek
https://codereview.chromium.org/2289853002/diff/20001/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (right): https://codereview.chromium.org/2289853002/diff/20001/chrome/browser/browsing_data/browsing_data_remover.cc#newcode554 chrome/browser/browsing_data/browsing_data_remover.cc:554: // object to avoid having to copy them to ...
4 years, 3 months ago (2016-08-31 11:08:34 UTC) #16
msramek
On 2016/08/31 04:30:29, Peter Kasting wrote: > Please update the CL title and description (origin ...
4 years, 3 months ago (2016-08-31 11:10:22 UTC) #18
msramek
+David as TBR for the updated iOS callsite. This callsite used RemoveAutoGeneratedForOriginBetween() and should be ...
4 years, 3 months ago (2016-08-31 11:16:26 UTC) #21
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/2289853002/40001
4 years, 3 months ago (2016-08-31 11:17:03 UTC) #26
droger
ios lgtm
4 years, 3 months ago (2016-08-31 11:22:12 UTC) #27
msramek
Thanks!
4 years, 3 months ago (2016-08-31 11:23:45 UTC) #28
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-08-31 11:54:01 UTC) #30
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/db42f899495a51c7645dfa0ceb97f589fa346e5c Cr-Commit-Position: refs/heads/master@{#415614}
4 years, 3 months ago (2016-08-31 11:55:34 UTC) #32
Peter Kasting
4 years, 3 months ago (2016-08-31 20:14:45 UTC) #34
Message was sent while issue was closed.
https://codereview.chromium.org/2289853002/diff/20001/components/search_engin...
File components/search_engines/template_url_service.h (right):

https://codereview.chromium.org/2289853002/diff/20001/components/search_engin...
components/search_engines/template_url_service.h:206: // auto-generated keywords
in the range.
On 2016/08/31 11:08:34, msramek wrote:
> On 2016/08/31 04:30:29, Peter Kasting wrote:
> > What does this last sentence mean?  I don't know what it means for a
callback
> to
> > be null.
> 
> I meant base::Callback::is_null(), i.e. an instance of Callback with no
function
> bound. Updated the comment to say "is_null()" so that it's clearer.

Argh, I went looking yesterday through all the callback headers and couldn't
find this function, so I thought it had been removed from the codebase.  Of
course today I find it in three seconds.

I actually think the old "is null" read better than "is_null()" and my question
was more how someone actually creates a callback in this state, but bleh, don't
worry about it.

Powered by Google App Engine
This is Rietveld 408576698