summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2010-10-22 19:39:01 +0100
committerKristian Monsen <kristianm@google.com>2010-10-22 19:39:01 +0100
commit32f4b921e70a60d19c3330cffc87f26761c6f38b (patch)
tree5eae95f1c14aa71ee15ca3d8a54c9a0465e0a348 /WebKit/android/jni
parent7e45393fdb6cea48b293dbb02d098b417f9e6d54 (diff)
downloadexternal_webkit-32f4b921e70a60d19c3330cffc87f26761c6f38b.zip
external_webkit-32f4b921e70a60d19c3330cffc87f26761c6f38b.tar.gz
external_webkit-32f4b921e70a60d19c3330cffc87f26761c6f38b.tar.bz2
Fix for ALT_HTTP build break
Was broken by this CL: https://android-git.corp.google.com/g/#change,75473 Change-Id: I6f60fd1e19eafe84f9d2f72f556493a25c2caf0e
Diffstat (limited to 'WebKit/android/jni')
-rw-r--r--WebKit/android/jni/CookieManager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/WebKit/android/jni/CookieManager.cpp b/WebKit/android/jni/CookieManager.cpp
index 9672160..037141f 100644
--- a/WebKit/android/jni/CookieManager.cpp
+++ b/WebKit/android/jni/CookieManager.cpp
@@ -37,6 +37,7 @@ namespace android {
static const char* javaCookieManagerClass = "android/webkit/CookieManager";
static void removeAllCookie(JNIEnv* env, jobject) {
+#if USE(CHROME_NETWORK_STACK)
WebRequestContext::GetContext(false)->cookie_store()->GetCookieMonster()->DeleteAllCreatedAfter(Time(), true);
// This will lazily create a new private browsing context. However, if the
// context doesn't already exist, there's no need to create it, as cookies
@@ -44,6 +45,7 @@ static void removeAllCookie(JNIEnv* env, jobject) {
// TODO: Consider adding an optimisation to not create the context if it
// doesn't already exist.
WebRequestContext::GetContext(true)->cookie_store()->GetCookieMonster()->DeleteAllCreatedAfter(Time(), true);
+#endif
}
static JNINativeMethod gCookieManagerMethods[] = {