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

Unified Diff: chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellToolbar.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/shell/java/src/org/chromium/chrome/shell/ChromeShellToolbar.java
diff --git a/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellToolbar.java b/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellToolbar.java
index 928c8808c3e402abcbbe50945651b31b574a8831..ab193ff9b4aea46b6119ba171c79ba0ec89ce829 100644
--- a/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellToolbar.java
+++ b/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellToolbar.java
@@ -19,7 +19,6 @@ import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.TextView.OnEditorActionListener;
-import org.chromium.base.ApiCompatibilityUtils;
import org.chromium.base.CommandLine;
import org.chromium.chrome.browser.EmptyTabObserver;
import org.chromium.chrome.browser.Tab;
@@ -53,8 +52,7 @@ public class ChromeShellToolbar extends LinearLayout {
R.drawable.btn_close);
} else {
mStopReloadButton.setImageResource(R.drawable.btn_toolbar_reload);
- ApiCompatibilityUtils.postOnAnimationDelayed(ChromeShellToolbar.this,
- mClearProgressRunnable, COMPLETED_PROGRESS_TIMEOUT_MS);
+ postOnAnimationDelayed(mClearProgressRunnable, COMPLETED_PROGRESS_TIMEOUT_MS);
}
}
};
@@ -127,7 +125,7 @@ public class ChromeShellToolbar extends LinearLayout {
removeCallbacks(mUpdateProgressRunnable);
mProgress = progress;
mLoading = progress != 100;
- ApiCompatibilityUtils.postOnAnimation(this, mUpdateProgressRunnable);
+ postOnAnimation(mUpdateProgressRunnable);
}
/**

Powered by Google App Engine
This is Rietveld 408576698