DescriptionRefactor BrowsingDataRemover creation for clarity.
We currently have two constructors for BrowsingDataRemover. This CL drops down to a single, private constructor with a few more specific public Create methods.
At the same time we're making that chance, we should explicitly refer to the end of time when we want to remove all browsing data from a user's machine, rather than passing in base::Time::Now() which is vulnerable to clock skew or other simply issues of asynchronocity. The new CreateForPeriod method makes that decision explicit.
base::Time::Max() has the nice property that it automatically compares as greater than any reasonable time we might encounter. This means we don't have to update every subsystem that BrowsingDataRemover relies on: they can continue to do simple comparisons without the complications of special-casing the null Time.
BUG=144946, 130732
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154744
Patch Set 1 #
Total comments: 4
Patch Set 2 : Updating callsites. #
Total comments: 6
Patch Set 3 : Markus' feedback. #
Total comments: 9
Patch Set 4 : Feedback, round 1. #
Total comments: 3
Patch Set 5 : Bernhard/Markus feedback. #Patch Set 6 : Mac #Messages
Total messages: 17 (0 generated)
|