Flush cookies when the browser is paused.

Cookies are currently flushed on a 30-second timer, but this isn't
sufficient because Android has a different application lifecycle
from a desktop OS -- it can kill the app when it's in the background
to save memory.

Here we flush cookies during onPause(), so the most recent user
activity should always be safely flushed to persistent memory.

Depends on CookieManager change in frameworks/base (I04e96aff).

Bug: 3231371
Change-Id: Iaa4541d4d18ab4c7bb6da372a4452f265b81d201
1 file changed