diff options
| -rw-r--r-- | WebKit/Android.mk | 4 | ||||
| -rw-r--r-- | WebKit/android/jni/CookieManager.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/WebKit/Android.mk b/WebKit/Android.mk index e640e02..7906da3 100644 --- a/WebKit/Android.mk +++ b/WebKit/Android.mk @@ -38,8 +38,7 @@ LOCAL_SRC_FILES := $(LOCAL_SRC_FILES) \ android/WebCoreSupport/WebRequest.cpp \ android/WebCoreSupport/WebRequestContext.cpp \ android/WebCoreSupport/WebResourceRequest.cpp \ - android/WebCoreSupport/WebResponse.cpp \ - android/jni/CookieManager.cpp + android/WebCoreSupport/WebResponse.cpp else LOCAL_SRC_FILES := $(LOCAL_SRC_FILES) \ android/WebCoreSupport/ResourceLoaderAndroid.cpp @@ -58,6 +57,7 @@ LOCAL_SRC_FILES := $(LOCAL_SRC_FILES) \ \ android/icu/unicode/ucnv.cpp \ \ + android/jni/CookieManager.cpp \ android/jni/DeviceMotionAndOrientationManager.cpp \ android/jni/DeviceMotionClientImpl.cpp \ android/jni/DeviceOrientationClientImpl.cpp \ 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[] = { |
