Commit 29b34844 authored by Matthew Jones's avatar Matthew Jones Committed by Commit Bot

Support dangerous download infobar on touchless devices

Bug: 958469
Change-Id: I88129f30f187636de500a34583fe002b44352b78
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1592521
Commit-Queue: Matthew Jones <mdjones@chromium.org>
Reviewed-by: default avatarTheresa <twellington@chromium.org>
Cr-Commit-Position: refs/heads/master@{#659220}
parent ac623188
...@@ -70,7 +70,10 @@ public class ConfirmInfoBar extends InfoBar { ...@@ -70,7 +70,10 @@ public class ConfirmInfoBar extends InfoBar {
@Override @Override
public boolean supportsTouchlessMode() { public boolean supportsTouchlessMode() {
// Only allow whitelisted implementations of the confirm infobar. // Only allow whitelisted implementations of the confirm infobar.
return getInfoBarIdentifier() == InfoBarIdentifier.POPUP_BLOCKED_INFOBAR_DELEGATE_MOBILE; @InfoBarIdentifier
int infobarId = getInfoBarIdentifier();
return infobarId == InfoBarIdentifier.POPUP_BLOCKED_INFOBAR_DELEGATE_MOBILE
|| infobarId == InfoBarIdentifier.DANGEROUS_DOWNLOAD_INFOBAR_DELEGATE_ANDROID;
} }
@Override @Override
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
android:layout_gravity="center" android:layout_gravity="center"
android:ellipsize="end" android:ellipsize="end"
android:padding="8dp" android:padding="8dp"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.BlackTitle1" android:textAppearance="@style/TextAppearance.BlackTitle1"
android:visibility="gone" /> android:visibility="gone" />
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment