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

Unified Diff: chrome/browser/android/chrome_application.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
Index: chrome/browser/android/chrome_application.cc
diff --git a/chrome/browser/android/chrome_application.cc b/chrome/browser/android/chrome_application.cc
index a5661ef46c6021c986c4eafa596c9c87e6ab9107..afb12f6250ef932790067361eb53094328bc94c8 100644
--- a/chrome/browser/android/chrome_application.cc
+++ b/chrome/browser/android/chrome_application.cc
@@ -81,9 +81,8 @@
} // namespace
-static ScopedJavaLocalRef<jstring> GetBrowserUserAgent(JNIEnv* env,
- jclass clazz) {
- return ConvertUTF8ToJavaString(env, GetUserAgent());
+static jstring GetBrowserUserAgent(JNIEnv* env, jclass clazz) {
+ return ConvertUTF8ToJavaString(env, GetUserAgent()).Release();
}
static void FlushPersistentData(JNIEnv* env, jclass obj) {
« no previous file with comments | « base/android/library_loader/library_loader_hooks.cc ('k') | chrome/browser/android/download/chrome_download_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698