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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/infobar/AnimationHelper.java

Issue 1078273002: Remove unnecesary ApiCompatibilityUtils calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: newt's comments Created 5 years, 8 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/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();
}

Powered by Google App Engine
This is Rietveld 408576698