Make addCookies method public. (#27512)

Summary:
react-native-cookie-store wants the ability to set custom cookies on Android. We use ForwardingCookieHandler to mange the cookies. Exposing the `addCookies` method will allow the module to provide the same functionality on Android.

https://github.com/safaiyeh/react-native-cookie-store/issues/1

## Changelog

[Android] [Changed] - Expose addCookies method
Pull Request resolved: https://github.com/facebook/react-native/pull/27512

Test Plan: N/A

Differential Revision: D19236309

Pulled By: cpojer

fbshipit-source-id: bf1a0730165456c34c5bf432ac370176a881cbcf
This commit is contained in:
Jason Safaiyeh
2019-12-27 01:53:49 -08:00
committed by Facebook Github Bot
parent 98ebc1ea25
commit cc845ccfb4
@@ -124,7 +124,7 @@ public class ForwardingCookieHandler extends CookieHandler {
}
}
private void addCookies(final String url, final List<String> cookies) {
public void addCookies(final String url, final List<String> cookies) {
final CookieManager cookieManager = getCookieManager();
if (cookieManager == null) return;