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

Unified Diff: chrome/browser/ui/android/infobars/simple_confirm_infobar_builder.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/simple_confirm_infobar_builder.cc
diff --git a/chrome/browser/ui/android/infobars/simple_confirm_infobar_builder.cc b/chrome/browser/ui/android/infobars/simple_confirm_infobar_builder.cc
index 6869e49b752d5188dbec7c438b97e1e1630d853f..4cd497ea73de466b547e94e746dfd2f1c5bd2ff7 100644
--- a/chrome/browser/ui/android/infobars/simple_confirm_infobar_builder.cc
+++ b/chrome/browser/ui/android/infobars/simple_confirm_infobar_builder.cc
@@ -98,7 +98,7 @@ bool SimpleConfirmInfoBarDelegate::ShouldExpire(
void SimpleConfirmInfoBarDelegate::InfoBarDismissed() {
Java_SimpleConfirmInfoBarBuilder_onInfoBarDismissed(
- base::android::AttachCurrentThread(), java_listener_.obj());
+ base::android::AttachCurrentThread(), java_listener_);
}
base::string16 SimpleConfirmInfoBarDelegate::GetMessageText() const {
@@ -117,12 +117,12 @@ SimpleConfirmInfoBarDelegate::GetButtonLabel(InfoBarButton button) const {
bool SimpleConfirmInfoBarDelegate::Accept() {
return !Java_SimpleConfirmInfoBarBuilder_onInfoBarButtonClicked(
- base::android::AttachCurrentThread(), java_listener_.obj(), true);
+ base::android::AttachCurrentThread(), java_listener_, true);
}
bool SimpleConfirmInfoBarDelegate::Cancel() {
return !Java_SimpleConfirmInfoBarBuilder_onInfoBarButtonClicked(
- base::android::AttachCurrentThread(), java_listener_.obj(), false);
+ base::android::AttachCurrentThread(), java_listener_, false);
}
} // anonymous namespace
« no previous file with comments | « chrome/browser/ui/android/infobars/save_password_infobar.cc ('k') | chrome/browser/ui/android/infobars/translate_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698