[BrowserSwitcher] Update cache.dat after loading rules from prefs

Previously, cache.dat was only updated once on startup (before loading
XML sitelists from prefs), and then after all the XML sitelists were
done downloading & parsing.

This left a 1-minute period of time where cache.dat and Chrome's state
didn't match. This would cause some back-and-forth switching between
the two.

Bug: 993054
Change-Id: Idb4da1c102a86392b88d7060664b16e1680c2deb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1798526
Commit-Queue: Julian Pastarmov <pastarmovj@chromium.org>
Reviewed-by: Julian Pastarmov <pastarmovj@chromium.org>
Auto-Submit: Nicolas Ouellet-Payeur <nicolaso@chromium.org>
Cr-Commit-Position: refs/heads/master@{#695964}
2 files changed