Use CanonicalCookie::FromStorage instead of bare constructor in
RestrictedCookieManager::SetCanonicalCookie(). This is part of a cleanup effort of cookie code to make CanonicalCookie's bare constructor private since it does no validation and its use should be discouraged. CanonicalCookie::FromStorage is a factory method meant for creating new CanonicalCookies from those which have already entered the user agent storage, so it is the appropriate method for this use case IIUC. Bug: 1102874 Change-Id: I6f25554bff6cffe9427564135116e60af4306c31 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2485292Reviewed-by:Maksim Orlovich <morlovich@chromium.org> Commit-Queue: Dylan Cutler <dylancutler@google.com> Cr-Commit-Position: refs/heads/master@{#818517}
Showing
Please register or sign in to comment