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

Unified Diff: chrome/browser/ui/android/infobars/update_password_infobar.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/ui/android/infobars/update_password_infobar.cc
diff --git a/chrome/browser/ui/android/infobars/update_password_infobar.cc b/chrome/browser/ui/android/infobars/update_password_infobar.cc
index cc3185e01a8b958bbe0245cd4978297038ca8232..39835ff7cfacb782bdfc4869d9c6ecb75dd22d88 100644
--- a/chrome/browser/ui/android/infobars/update_password_infobar.cc
+++ b/chrome/browser/ui/android/infobars/update_password_infobar.cc
@@ -23,7 +23,7 @@ UpdatePasswordInfoBar::~UpdatePasswordInfoBar() {}
int UpdatePasswordInfoBar::GetIdOfSelectedUsername() const {
return Java_UpdatePasswordInfoBar_getSelectedUsername(
- base::android::AttachCurrentThread(), java_infobar_.obj());
+ base::android::AttachCurrentThread(), java_infobar_);
}
base::android::ScopedJavaLocalRef<jobject>
@@ -51,8 +51,8 @@ UpdatePasswordInfoBar::CreateRenderInfoBar(JNIEnv* env) {
base::android::ScopedJavaLocalRef<jobject> infobar;
infobar.Reset(Java_UpdatePasswordInfoBar_show(
env, reinterpret_cast<intptr_t>(this), GetEnumeratedIconId(),
- base::android::ToJavaArrayOfStrings(env, usernames).obj(),
- ok_button_text.obj(), cancel_button_text.obj(), branding_text.obj(),
+ base::android::ToJavaArrayOfStrings(env, usernames), ok_button_text,
+ cancel_button_text, branding_text,
update_password_delegate->ShowMultipleAccounts(),
update_password_delegate->is_smartlock_branding_enabled()));

Powered by Google App Engine
This is Rietveld 408576698