Commit 7ca50812 authored by gogerald's avatar gogerald Committed by Commit Bot

[Payments] Display host name for opened payment handler window and elide it from left to right

Bug: 829965
Change-Id: I0edaa674fc4820dc6229270abd53ba92ae72d18a
Reviewed-on: https://chromium-review.googlesource.com/1057845Reviewed-by: default avatarMathieu Perreault <mathp@chromium.org>
Commit-Queue: Ganggui Tang <gogerald@chromium.org>
Cr-Commit-Position: refs/heads/master@{#558387}
parent 2e456e11
......@@ -83,7 +83,8 @@ class ReadOnlyOriginView : public views::View {
title_origin_layout->StartRow(0, 0);
views::Label* origin_label =
new views::Label(base::UTF8ToUTF16(origin.spec()));
new views::Label(base::UTF8ToUTF16(origin.host()));
origin_label->SetElideBehavior(gfx::ELIDE_HEAD);
if (!title_is_valid) {
// Set the origin as title when the page title is invalid.
origin_label->set_id(static_cast<int>(DialogViewID::SHEET_TITLE));
......
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