Use common browsing_data util functions
Use browsing_data::RecordDeletionForPeriod() to record the action instead of re-implementing it and use the function browsing_data::CalculateEndDeleteTime to correctly compute the end of the time period (fix the "older than 30 days" time period). Remove unnecessary code to clean up delete_end_ as the corresponding issue is long fixed. Bug: none Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs Change-Id: Ib1cf0287daad9f4228a1d2c146e0f8f2028e16cd Reviewed-on: https://chromium-review.googlesource.com/911885Reviewed-by:Olivier Robin <olivierrobin@chromium.org> Commit-Queue: Sylvain Defresne <sdefresne@chromium.org> Cr-Commit-Position: refs/heads/master@{#535999}
Showing
Please register or sign in to comment