Deduplicate some cookie manager code

The two cookie managers in and need some shared functionality and rather
than having a duplicate set of helper functions (of which one
clashed in some jumbo builds and cause build breakage), move
the shared helper functions to a new file

Bug: 729800
Change-Id: I1839bd04e96471569b1b8a53bf1921f182b8bff4
Reviewed-by: Maks Orlovich <>
Commit-Queue: Daniel Bratell <>
Cr-Commit-Position: refs/heads/master@{#635522}
5 files changed