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

Review-Url: https://codereview.chromium.org/2261673002
Cr-Commit-Position: refs/heads/master@{#436948}
2 files changed