Reland: [iOS] Use a persistent cookie store for Safe Browsing

This makes SafeBrowsingService use a persistent cookie store,
and clears this cookie store whenever cookies are cleared for
"all time". This makes the behavior on iOS consistent with
the behavior of Safe Browsing on other platforms.

This is a re-land of with a fix
for SafeBrowsingServiceTest.PersistentCookies.

Bug: 1103219
Change-Id: I61dc96bdf8a77c3336bca20878cfc2cda76ee990
Reviewed-by: Eugene But <>
Commit-Queue: Ali Juma <>
Cr-Original-Commit-Position: refs/heads/master@{#796619}
Cr-Mirrored-Commit: 028082e315cf7eb4aad6957912b67e6279f6fedf
10 files changed