Loading core/java/android/webkit/CookieManager.java +3 −6 Original line number Diff line number Diff line Loading @@ -621,14 +621,11 @@ public final class CookieManager { } /** * Tell the cookie store that this is a good time to flush cookies to flash. * * This should be called when the app is paused. Note that this method only * acts as a hint, and may not have any effect. Flushing is asynchronous. * Package level api, called from CookieSyncManager * * @hide pending API council approval. * Flush all cookies managed by the Chrome HTTP stack to flash. */ public void flushCookieStore() { void flushCookieStore() { if (useChromiumHttpStack()) { nativeFlushCookieStore(); } Loading core/java/android/webkit/CookieSyncManager.java +7 −5 Original line number Diff line number Diff line Loading @@ -172,17 +172,19 @@ public final class CookieSyncManager extends WebSyncManager { Log.v(LOGTAG, "CookieSyncManager::syncFromRamToFlash STARTS"); } if (!CookieManager.getInstance().acceptCookie()) { CookieManager manager = CookieManager.getInstance(); if (!manager.acceptCookie()) { return; } ArrayList<Cookie> cookieList = CookieManager.getInstance() .getUpdatedCookiesSince(mLastUpdate); manager.flushCookieStore(); ArrayList<Cookie> cookieList = manager.getUpdatedCookiesSince(mLastUpdate); mLastUpdate = System.currentTimeMillis(); syncFromRamToFlash(cookieList); ArrayList<Cookie> lruList = CookieManager.getInstance().deleteLRUDomain(); ArrayList<Cookie> lruList = manager.deleteLRUDomain(); syncFromRamToFlash(lruList); if (DebugFlags.COOKIE_SYNC_MANAGER) { Loading Loading
core/java/android/webkit/CookieManager.java +3 −6 Original line number Diff line number Diff line Loading @@ -621,14 +621,11 @@ public final class CookieManager { } /** * Tell the cookie store that this is a good time to flush cookies to flash. * * This should be called when the app is paused. Note that this method only * acts as a hint, and may not have any effect. Flushing is asynchronous. * Package level api, called from CookieSyncManager * * @hide pending API council approval. * Flush all cookies managed by the Chrome HTTP stack to flash. */ public void flushCookieStore() { void flushCookieStore() { if (useChromiumHttpStack()) { nativeFlushCookieStore(); } Loading
core/java/android/webkit/CookieSyncManager.java +7 −5 Original line number Diff line number Diff line Loading @@ -172,17 +172,19 @@ public final class CookieSyncManager extends WebSyncManager { Log.v(LOGTAG, "CookieSyncManager::syncFromRamToFlash STARTS"); } if (!CookieManager.getInstance().acceptCookie()) { CookieManager manager = CookieManager.getInstance(); if (!manager.acceptCookie()) { return; } ArrayList<Cookie> cookieList = CookieManager.getInstance() .getUpdatedCookiesSince(mLastUpdate); manager.flushCookieStore(); ArrayList<Cookie> cookieList = manager.getUpdatedCookiesSince(mLastUpdate); mLastUpdate = System.currentTimeMillis(); syncFromRamToFlash(cookieList); ArrayList<Cookie> lruList = CookieManager.getInstance().deleteLRUDomain(); ArrayList<Cookie> lruList = manager.deleteLRUDomain(); syncFromRamToFlash(lruList); if (DebugFlags.COOKIE_SYNC_MANAGER) { Loading