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

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

Issue 2237943002: Remove now-unnecessary .obj() in Java method calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@switch-context
Patch Set: Rebase *again* :( Created 4 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 121bd16d30b88e42c05fcbcaaf3faa747713ee00..5812266c8556a48347aae7067c0ce17b0402a1af 100644
--- a/chrome/browser/android/recently_closed_tabs_bridge.cc
+++ b/chrome/browser/android/recently_closed_tabs_bridge.cc
@@ -31,9 +31,8 @@ void AddTabToList(JNIEnv* env,
tab.navigations.at(tab.current_navigation_index);
Java_RecentlyClosedBridge_pushTab(
env, jtabs_list, tab.id,
- ConvertUTF16ToJavaString(env, current_navigation.title()).obj(),
- ConvertUTF8ToJavaString(env, current_navigation.virtual_url().spec())
- .obj());
+ ConvertUTF16ToJavaString(env, current_navigation.title()),
+ ConvertUTF8ToJavaString(env, current_navigation.virtual_url().spec()));
}
void AddTabsToList(JNIEnv* env,
@@ -156,7 +155,7 @@ void RecentlyClosedTabsBridge::TabRestoreServiceChanged(
if (callback_.is_null())
return;
JNIEnv* env = AttachCurrentThread();
- Java_RecentlyClosedCallback_onUpdated(env, callback_.obj());
+ Java_RecentlyClosedCallback_onUpdated(env, callback_);
}
void RecentlyClosedTabsBridge::TabRestoreServiceDestroyed(

Powered by Google App Engine
This is Rietveld 408576698