Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1530)

Unified Diff: android_webview/native/cookie_manager.cc

Issue 1308363003: Revert of jni_generator: Make all object-returning natives return ScopedJavaLocalRef. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/native/aw_settings.cc ('k') | base/android/command_line_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/cookie_manager.cc
diff --git a/android_webview/native/cookie_manager.cc b/android_webview/native/cookie_manager.cc
index 130e76c853098d1085ec5100c31d8f5f6ec74dd3..b7243bd8544c54b13cf2fa3fb309a9942c3180d2 100644
--- a/android_webview/native/cookie_manager.cc
+++ b/android_webview/native/cookie_manager.cc
@@ -542,13 +542,12 @@
CookieManager::GetInstance()->SetCookieSync(host, cookie_value);
}
-static ScopedJavaLocalRef<jstring> GetCookie(JNIEnv* env,
- jobject obj,
- jstring url) {
+static jstring GetCookie(JNIEnv* env, jobject obj, jstring url) {
GURL host(ConvertJavaStringToUTF16(env, url));
return base::android::ConvertUTF8ToJavaString(
- env, CookieManager::GetInstance()->GetCookie(host));
+ env,
+ CookieManager::GetInstance()->GetCookie(host)).Release();
}
static void RemoveSessionCookies(JNIEnv* env,
« no previous file with comments | « android_webview/native/aw_settings.cc ('k') | base/android/command_line_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698