[iOS] Do not drop cookie tasks when cookie loading is interrupted.
commit5aa3f26c3a738ad4a320b767cbf7d565101573de
authordroger <droger@chromium.org>
Mon, 22 Jun 2015 15:47:30 +0000 (22 08:47 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 22 Jun 2015 15:48:00 +0000 (22 15:48 +0000)
tree9f1a54e8d7a74ae484c62fed4c392e2e43084a70
parente930129c9456bf90b7c97844076ddf3b077d3a87
[iOS] Do not drop cookie tasks when cookie loading is interrupted.

This CL adds support for the case where cookie loading is interrupted
with pending tasks.
The old behavior was to DCHECK and early return without processing the
tasks until the next reload of the cookies.
This CL implements the right behavior: run the tasks against the
CookieMonster which becomes the source of truth when cookie loading is
interrupted.

The CL also adds two unittests that would have been failing before.

BUG=469843

Review URL: https://codereview.chromium.org/1187283002

Cr-Commit-Position: refs/heads/master@{#335506}
ios/net/cookies/cookie_store_ios.h
ios/net/cookies/cookie_store_ios.mm
ios/net/cookies/cookie_store_ios_unittest.mm