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

Unified Diff: chrome/browser/android/favicon_helper.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/favicon_helper.cc
diff --git a/chrome/browser/android/favicon_helper.cc b/chrome/browser/android/favicon_helper.cc
index 273d339ef5d0c05527dd2d8789644bad9dbd0bb4..588072529fcb92d54ae10c4f1bb7e0af9039c03d 100644
--- a/chrome/browser/android/favicon_helper.cc
+++ b/chrome/browser/android/favicon_helper.cc
@@ -64,10 +64,8 @@ void OnLocalFaviconAvailable(
}
// Call java side OnLocalFaviconAvailable method.
- Java_FaviconImageCallback_onFaviconAvailable(env,
- j_favicon_image_callback->obj(),
- j_favicon_bitmap.obj(),
- j_icon_url.obj());
+ Java_FaviconImageCallback_onFaviconAvailable(
+ env, j_favicon_image_callback->obj(), j_favicon_bitmap, j_icon_url);
}
size_t GetLargestSizeIndex(const std::vector<gfx::Size>& sizes) {
@@ -107,7 +105,7 @@ void OnFaviconDownloaded(
JNIEnv* env = AttachCurrentThread();
Java_IconAvailabilityCallback_onIconAvailabilityChecked(
- env, j_availability_callback.obj(), success);
+ env, j_availability_callback, success);
}
void OnFaviconImageResultAvailable(
@@ -123,7 +121,7 @@ void OnFaviconImageResultAvailable(
if (!result.image.IsEmpty()) {
JNIEnv* env = AttachCurrentThread();
Java_IconAvailabilityCallback_onIconAvailabilityChecked(
- env, j_availability_callback.obj(), false);
+ env, j_availability_callback, false);
return;
}
« no previous file with comments | « chrome/browser/android/download/download_manager_service.cc ('k') | chrome/browser/android/foreign_session_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698