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

Unified Diff: content/browser/web_contents/web_contents_android.cc

Issue 2417263002: Pass JavaRef to Java methods in ui. (Closed)
Patch Set: Created 4 years, 2 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: content/browser/web_contents/web_contents_android.cc
diff --git a/content/browser/web_contents/web_contents_android.cc b/content/browser/web_contents/web_contents_android.cc
index d85822d6c47921c6897082d163c04916d2832319..2d42379caca752f4df5d131e2c7114a2a2999f92 100644
--- a/content/browser/web_contents/web_contents_android.cc
+++ b/content/browser/web_contents/web_contents_android.cc
@@ -638,7 +638,7 @@ void WebContentsAndroid::GetContentBitmap(
weak_factory_.GetWeakPtr(),
base::Owned(new ScopedJavaGlobalRef<jobject>(env, obj)),
base::Owned(new ScopedJavaGlobalRef<jobject>(env, jcallback)));
- SkColorType pref_color_type = gfx::ConvertToSkiaColorType(color_type.obj());
+ SkColorType pref_color_type = gfx::ConvertToSkiaColorType(color_type);
if (!view || pref_color_type == kUnknown_SkColorType) {
result_callback.Run(SkBitmap(), READBACK_FAILED);
return;

Powered by Google App Engine
This is Rietveld 408576698