| Index: chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarLayout.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarLayout.java b/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarLayout.java
|
| index ec47df7013cc64526ef5888f0f0bae07286b4013..707861e6eb727ecdd18068b3c3132d43a6d6bd5c 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarLayout.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarLayout.java
|
| @@ -8,7 +8,6 @@ import android.content.Context;
|
| import android.content.res.Resources;
|
| import android.content.res.TypedArray;
|
| import android.graphics.Bitmap;
|
| -import android.graphics.Typeface;
|
| import android.graphics.drawable.Drawable;
|
| import android.support.annotation.Nullable;
|
| import android.text.SpannableString;
|
| @@ -26,6 +25,7 @@ import android.widget.TextView;
|
| import org.chromium.base.ApiCompatibilityUtils;
|
| import org.chromium.chrome.R;
|
| import org.chromium.chrome.browser.widget.DualControlLayout;
|
| +import org.chromium.ui.UiUtils;
|
| import org.chromium.ui.text.NoUnderlineClickableSpan;
|
| import org.chromium.ui.widget.ButtonCompat;
|
|
|
| @@ -259,10 +259,8 @@ public final class InfoBarLayout extends ViewGroup implements View.OnClickListen
|
| lp.endMargin = mBigIconMargin;
|
|
|
| Resources res = getContext().getResources();
|
| - String typeface = res.getString(R.string.roboto_medium_typeface);
|
| - int textStyle = res.getInteger(R.integer.roboto_medium_textstyle);
|
| float textSize = res.getDimension(R.dimen.infobar_big_icon_message_size);
|
| - mMessageTextView.setTypeface(Typeface.create(typeface, textStyle));
|
| + mMessageTextView.setTypeface(UiUtils.createRobotoMediumTypeface());
|
| mMessageTextView.setMaxLines(1);
|
| mMessageTextView.setEllipsize(TextUtils.TruncateAt.END);
|
| mMessageTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
|
|
|