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

Issue 2261673002: Move static RegistrableDomainFilterBuilder methods to an anonymous namespace (Closed)

Created:
4 years, 4 months ago by msramek
Modified:
4 years ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, markusheintz_, msramek+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move static RegistrableDomainFilterBuilder methods to an anonymous namespace The static methods that BrowsingDataFilterBuilder wraps in base::Callback and passes as filters do not need to be members of the class. This CL moves them to an anonymous namespace. Furthermore, we replace the naked pointers which are passed to these methods with std::move() of a locally allocated object. This class is extensively used in BrowsingDataRemoverUnittest, which provides the test coverage for this change. BUG=None Committed: https://crrev.com/939972b08603666c25471a1d5e68a2de298e3fad Cr-Commit-Position: refs/heads/master@{#436948}

Patch Set 1 : Move static methods to anonymous namespace. #

Patch Set 2 : Removed naked pointers. #

Total comments: 6

Patch Set 3 : Rebase. #

Patch Set 4 : Addressed the comment. #

Patch Set 5 : BindRepeating #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -148 lines) Patch
M chrome/browser/browsing_data/registrable_domain_filter_builder.h View 1 2 3 1 chunk +3 lines, -42 lines 0 comments Download
M chrome/browser/browsing_data/registrable_domain_filter_builder.cc View 1 2 3 4 3 chunks +99 lines, -106 lines 0 comments Download

Messages

Total messages: 31 (20 generated)
msramek
Hi Bernhard! I extracted these changes from CL https://codereview.chromium.org/2248403002/ where you requested them during the ...
4 years, 3 months ago (2016-09-13 15:06:49 UTC) #8
msramek
Hi Bernhard! Mind looking at this super-old CL? :-) It's still low priority etc., but ...
4 years ago (2016-11-23 14:18:42 UTC) #9
Bernhard Bauer
Oops, turns out I had an old draft comment... :) https://codereview.chromium.org/2261673002/diff/40001/chrome/browser/browsing_data/registrable_domain_filter_builder.cc File chrome/browser/browsing_data/registrable_domain_filter_builder.cc (right): https://codereview.chromium.org/2261673002/diff/40001/chrome/browser/browsing_data/registrable_domain_filter_builder.cc#newcode139 ...
4 years ago (2016-11-23 15:53:07 UTC) #10
msramek
Heh :) I wonder if I could have discovered that from the "Last updated time" ...
4 years ago (2016-11-24 17:38:08 UTC) #17
Bernhard Bauer
LGTM https://codereview.chromium.org/2261673002/diff/40001/chrome/browser/browsing_data/registrable_domain_filter_builder.cc File chrome/browser/browsing_data/registrable_domain_filter_builder.cc (right): https://codereview.chromium.org/2261673002/diff/40001/chrome/browser/browsing_data/registrable_domain_filter_builder.cc#newcode139 chrome/browser/browsing_data/registrable_domain_filter_builder.cc:139: return base::Bind(MatchesURL, domains, mode()); On 2016/11/24 17:38:08, msramek ...
4 years ago (2016-11-25 13:53:20 UTC) #20
msramek
https://codereview.chromium.org/2261673002/diff/40001/chrome/browser/browsing_data/registrable_domain_filter_builder.cc File chrome/browser/browsing_data/registrable_domain_filter_builder.cc (right): https://codereview.chromium.org/2261673002/diff/40001/chrome/browser/browsing_data/registrable_domain_filter_builder.cc#newcode139 chrome/browser/browsing_data/registrable_domain_filter_builder.cc:139: return base::Bind(MatchesURL, domains, mode()); On 2016/11/25 13:53:19, Bernhard Bauer ...
4 years ago (2016-11-25 17:03:43 UTC) #21
Bernhard Bauer
https://codereview.chromium.org/2261673002/diff/40001/chrome/browser/browsing_data/registrable_domain_filter_builder.cc File chrome/browser/browsing_data/registrable_domain_filter_builder.cc (right): https://codereview.chromium.org/2261673002/diff/40001/chrome/browser/browsing_data/registrable_domain_filter_builder.cc#newcode139 chrome/browser/browsing_data/registrable_domain_filter_builder.cc:139: return base::Bind(MatchesURL, domains, mode()); On 2016/11/25 17:03:43, msramek wrote: ...
4 years ago (2016-11-25 17:18:31 UTC) #22
msramek
Argh, I completely forgot about this CL, sorry. I made the largest possible substitution that ...
4 years ago (2016-12-07 13:21:34 UTC) #23
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/2261673002/120001
4 years ago (2016-12-07 13:21:57 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years ago (2016-12-07 14:46:29 UTC) #29
commit-bot: I haz the power
4 years ago (2016-12-07 14:48:30 UTC) #31
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/939972b08603666c25471a1d5e68a2de298e3fad
Cr-Commit-Position: refs/heads/master@{#436948}

Powered by Google App Engine
This is Rietveld 408576698