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

Unified Diff: chrome/browser/ui/android/omnibox/omnibox_url_emphasizer.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/ui/android/omnibox/omnibox_url_emphasizer.cc
diff --git a/chrome/browser/ui/android/omnibox/omnibox_url_emphasizer.cc b/chrome/browser/ui/android/omnibox/omnibox_url_emphasizer.cc
index 73cb692ee3742a4247dd4784b0bd565224942c27..b70f89dde0f303322850d03e792c078ea5b11902 100644
--- a/chrome/browser/ui/android/omnibox/omnibox_url_emphasizer.cc
+++ b/chrome/browser/ui/android/omnibox/omnibox_url_emphasizer.cc
@@ -12,10 +12,10 @@
#include "jni/OmniboxUrlEmphasizer_jni.h"
// static
-ScopedJavaLocalRef<jintArray> ParseForEmphasizeComponents(JNIEnv* env,
- jclass clazz,
- jobject jprofile,
- jstring jtext) {
+jintArray ParseForEmphasizeComponents(JNIEnv* env,
+ jclass clazz,
+ jobject jprofile,
+ jstring jtext) {
Profile* profile = ProfileAndroid::FromProfileAndroid(jprofile);
DCHECK(profile);
@@ -26,7 +26,7 @@
text, ChromeAutocompleteSchemeClassifier(profile), &scheme, &host);
int emphasize_values[] = {scheme.begin, scheme.len, host.begin, host.len};
- return base::android::ToJavaIntArray(env, emphasize_values, 4);
+ return base::android::ToJavaIntArray(env, emphasize_values, 4).Release();
}
// static
« no previous file with comments | « chrome/browser/ui/android/navigation_popup.cc ('k') | chrome/browser/ui/android/omnibox/omnibox_view_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698