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

Unified Diff: chrome/browser/android/recently_closed_tabs_bridge.cc

Issue 1294333002: Fix wrong usages of ScopedJavaLocalRef::Release(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment to Release() explaining it should not be used to call java methods 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/recently_closed_tabs_bridge.cc
diff --git a/chrome/browser/android/recently_closed_tabs_bridge.cc b/chrome/browser/android/recently_closed_tabs_bridge.cc
index aaa2d7c71350450dc472170f91d81fb8973f9249..0049595d9a3a612c8a2cd27c72dd582979efbde1 100644
--- a/chrome/browser/android/recently_closed_tabs_bridge.cc
+++ b/chrome/browser/android/recently_closed_tabs_bridge.cc
@@ -30,9 +30,9 @@ void AddTabToList(JNIEnv* env,
tab->navigations.at(tab->current_navigation_index);
Java_RecentlyClosedBridge_pushTab(
env, jtabs_list, entry->id,
- ConvertUTF16ToJavaString(env, current_navigation.title()).Release(),
+ ConvertUTF16ToJavaString(env, current_navigation.title()).obj(),
ConvertUTF8ToJavaString(env, current_navigation.virtual_url().spec())
- .Release());
+ .obj());
}
void AddTabsToList(JNIEnv* env,
« no previous file with comments | « chrome/browser/android/history_report/history_report_jni_bridge.cc ('k') | chrome/browser/speech/tts_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698