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

Unified Diff: content/browser/android/composited_touch_handle_drawable.cc

Issue 2231923002: Make GetApplicationContext return a JavaRef. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also fix not-currently-compiled unit test 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: content/browser/android/composited_touch_handle_drawable.cc
diff --git a/content/browser/android/composited_touch_handle_drawable.cc b/content/browser/android/composited_touch_handle_drawable.cc
index fb19fc8b8872827f3722428ac045b2e442b1f27d..f03c9e67a15fa6dea9452bffa0044b6beb3bb539 100644
--- a/content/browser/android/composited_touch_handle_drawable.cc
+++ b/content/browser/android/composited_touch_handle_drawable.cc
@@ -39,7 +39,7 @@ class HandleResources {
TRACE_EVENT0("browser", "HandleResources::Create");
JNIEnv* env = base::android::AttachCurrentThread();
if (!context)
- context = base::android::GetApplicationContext();
+ context = base::android::GetApplicationContext().obj();
left_bitmap_ = CreateSkBitmapFromJavaBitmap(
Java_HandleViewResources_getLeftHandleBitmap(env, context));

Powered by Google App Engine
This is Rietveld 408576698