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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/preferences/ChromeSwitchPreference.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/preferences/ChromeSwitchPreference.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/ChromeSwitchPreference.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/ChromeSwitchPreference.java
index dff73923dc25e0eaecc213bcbe48bdfdff7ea61c..3c3df8f51edcc151d3f38a57e52c019d7811e3cb 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/ChromeSwitchPreference.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/ChromeSwitchPreference.java
@@ -15,7 +15,6 @@ import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;
-import org.chromium.base.ApiCompatibilityUtils;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.widget.ChromeSwitchCompat;
@@ -72,7 +71,7 @@ public class ChromeSwitchPreference extends SwitchPreference {
int right = view.getPaddingRight();
int top = view.getPaddingTop();
int bottom = view.getPaddingBottom();
- ApiCompatibilityUtils.setBackgroundForView(view, DividerDrawable.create(getContext()));
+ view.setBackground(DividerDrawable.create(getContext()));
view.setPadding(left, top, right, bottom);
}

Powered by Google App Engine
This is Rietveld 408576698