Index: chrome/android/java/src/org/chromium/chrome/browser/infobar/AnimationHelper.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/infobar/AnimationHelper.java b/chrome/android/java/src/org/chromium/chrome/browser/infobar/AnimationHelper.java |
index 2725ec3ca1c95b624eb51e8579a633fec856d4c8..af325f866cab0f0ed3660b243defb8fa9ecd660e 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/infobar/AnimationHelper.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/infobar/AnimationHelper.java |
@@ -17,7 +17,6 @@ import android.view.animation.AccelerateDecelerateInterpolator; |
import android.widget.LinearLayout; |
import android.widget.TextView; |
-import org.chromium.base.ApiCompatibilityUtils; |
import org.chromium.chrome.R; |
import java.util.ArrayList; |
@@ -122,7 +121,7 @@ public class AnimationHelper implements ViewTreeObserver.OnGlobalLayoutListener |
*/ |
@Override |
public void onGlobalLayout() { |
- ApiCompatibilityUtils.removeOnGlobalLayoutListener(mTargetWrapperView, this); |
+ mTargetWrapperView.getViewTreeObserver().removeOnGlobalLayoutListener(this); |
continueAnimation(); |
} |