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

Unified Diff: chrome/browser/permissions/permission_update_infobar_delegate_android.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
« no previous file with comments | « chrome/browser/password_manager/credential_android.cc ('k') | chrome/browser/platform_util_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/permissions/permission_update_infobar_delegate_android.cc
diff --git a/chrome/browser/permissions/permission_update_infobar_delegate_android.cc b/chrome/browser/permissions/permission_update_infobar_delegate_android.cc
index e1c22fa1ec6c8ef2556efd38e1990efb4fbc1e9e..6d796e9487790e97e5f92f10d95789c4cb9cba49 100644
--- a/chrome/browser/permissions/permission_update_infobar_delegate_android.cc
+++ b/chrome/browser/permissions/permission_update_infobar_delegate_android.cc
@@ -139,15 +139,13 @@ PermissionUpdateInfoBarDelegate::PermissionUpdateInfoBarDelegate(
callback_(callback) {
JNIEnv* env = base::android::AttachCurrentThread();
java_delegate_.Reset(Java_PermissionUpdateInfoBarDelegate_create(
- env,
- reinterpret_cast<intptr_t>(this),
- web_contents->GetJavaWebContents().obj(),
- base::android::ToJavaArrayOfStrings(env, android_permissions_).obj()));
+ env, reinterpret_cast<intptr_t>(this), web_contents->GetJavaWebContents(),
+ base::android::ToJavaArrayOfStrings(env, android_permissions_)));
}
PermissionUpdateInfoBarDelegate::~PermissionUpdateInfoBarDelegate() {
Java_PermissionUpdateInfoBarDelegate_onNativeDestroyed(
- base::android::AttachCurrentThread(), java_delegate_.obj());
+ base::android::AttachCurrentThread(), java_delegate_);
}
infobars::InfoBarDelegate::InfoBarIdentifier
@@ -175,7 +173,7 @@ base::string16 PermissionUpdateInfoBarDelegate::GetButtonLabel(
bool PermissionUpdateInfoBarDelegate::Accept() {
Java_PermissionUpdateInfoBarDelegate_requestPermissions(
- base::android::AttachCurrentThread(), java_delegate_.obj());
+ base::android::AttachCurrentThread(), java_delegate_);
return false;
}
« no previous file with comments | « chrome/browser/password_manager/credential_android.cc ('k') | chrome/browser/platform_util_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698