Index: ui/gl/android/scoped_java_surface.cc |
diff --git a/ui/gl/android/scoped_java_surface.cc b/ui/gl/android/scoped_java_surface.cc |
index 36f635fe01a6c700a44925840a1fb3fc9955f3a3..ae4f81a44bd82a23e9e83f0b5a9f4c7b0bea2e27 100644 |
--- a/ui/gl/android/scoped_java_surface.cc |
+++ b/ui/gl/android/scoped_java_surface.cc |
@@ -32,7 +32,7 @@ ScopedJavaSurface::ScopedJavaSurface( |
is_protected_(false) { |
JNIEnv* env = base::android::AttachCurrentThread(); |
RegisterNativesIfNeeded(env); |
- DCHECK(env->IsInstanceOf(surface.obj(), g_Surface_clazz)); |
+ DCHECK(env->IsInstanceOf(surface.obj(), Surface_clazz(env))); |
j_surface_.Reset(surface); |
} |