Commit 6ffec3d4 authored by Christopher Grant's avatar Christopher Grant Committed by Commit Bot

VR: Show the info icon with URL if no other security state

Chrome security is trending away from showing the URL scheme, to an
icon-based representation. To support that, we should return to showing
the info icon if there is no other state (either secure or dangerous).

BUG=778411
R=bshe

Change-Id: Ic6ec0af9ff628bcacab55484a7e584339e59528f
Reviewed-on: https://chromium-review.googlesource.com/773119Reviewed-by: default avatarBiao She <bshe@chromium.org>
Commit-Queue: Christopher Grant <cjgrant@chromium.org>
Cr-Commit-Position: refs/heads/master@{#517146}
parent 9219b4b9
......@@ -218,8 +218,7 @@ void UrlBarTexture::Draw(SkCanvas* canvas, const gfx::Size& texture_size) {
float left_edge = kBackButtonWidth + kSeparatorWidth + kFieldSpacing;
// Site security state icon.
if ((state_.security_level != security_state::NONE || state_.offline_page) &&
state_.vector_icon != nullptr && state_.should_display_url) {
if (state_.should_display_url && state_.vector_icon != nullptr) {
gfx::RectF icon_region(left_edge, kHeight / 2 - kSecurityIconSize / 2,
kSecurityIconSize, kSecurityIconSize);
VectorIcon::DrawVectorIcon(
......
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