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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/widget/SmoothProgressBar.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/widget/SmoothProgressBar.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/widget/SmoothProgressBar.java b/chrome/android/java/src/org/chromium/chrome/browser/widget/SmoothProgressBar.java
index c084b619f7f28570e4a5321ba2185211fa5ab3a7..14ec6de40df54d7fcd23086adb20895e55cd1655 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/widget/SmoothProgressBar.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/widget/SmoothProgressBar.java
@@ -8,7 +8,6 @@ import android.content.Context;
import android.util.AttributeSet;
import android.widget.ProgressBar;
-import org.chromium.base.ApiCompatibilityUtils;
import org.chromium.base.ObserverList;
import org.chromium.base.ObserverList.RewindableIterator;
@@ -65,8 +64,7 @@ public class SmoothProgressBar extends ProgressBar {
// Every time, the progress bar get's at least 20% closer to mTargetProcess.
// Add 3 to guarantee progressing even if they only differ by 1.
setProgressInternal(getProgress() + (mTargetProgress - getProgress() + 3) / 4);
- ApiCompatibilityUtils.postOnAnimationDelayed(
- SmoothProgressBar.this, this, PROGRESS_UPDATE_DELAY_MS);
+ postOnAnimationDelayed(this, PROGRESS_UPDATE_DELAY_MS);
}
};
@@ -118,7 +116,7 @@ public class SmoothProgressBar extends ProgressBar {
if (mTargetProgress == targetProgress) return;
mTargetProgress = targetProgress;
removeCallbacks(mUpdateProgressRunnable);
- ApiCompatibilityUtils.postOnAnimation(this, mUpdateProgressRunnable);
+ postOnAnimation(mUpdateProgressRunnable);
}
/**

Powered by Google App Engine
This is Rietveld 408576698