Merge "Fix for bug 3407633 Cookie not set in CookieManager"

This commit is contained in:
Kristian Monsen
2011-02-01 06:34:48 -08:00
committed by Android (Google) Code Review

View File

@@ -294,6 +294,8 @@ public final class CookieManager {
*/
public void setCookie(String url, String value) {
if (JniUtil.useChromiumHttpStack()) {
if (url.indexOf("://") == -1)
url = "http://" + url;
nativeSetCookie(url, value);
return;
}
@@ -425,6 +427,8 @@ public final class CookieManager {
*/
public String getCookie(String url) {
if (JniUtil.useChromiumHttpStack()) {
if (url.indexOf("://") == -1)
url = "http://" + url;
return nativeGetCookie(url);
}