Commit 3e276a96 authored by stkhapugin@chromium.org's avatar stkhapugin@chromium.org Committed by Commit Bot

Change format types of display URL on iOS

Modifies the format types passed to the URL formatter in
GetURLForDisplay() on iOS to trim after host.

Bug: 821801
Change-Id: Ib744a161d0488b5e0f3ee8e0d81947da17bb22cb
Reviewed-on: https://chromium-review.googlesource.com/1007079
Commit-Queue: Stepan Khapugin <stkhapugin@chromium.org>
Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550605}
parent 02af3e83
...@@ -63,6 +63,9 @@ base::string16 ToolbarModelImpl::GetFormattedFullURL() const { ...@@ -63,6 +63,9 @@ base::string16 ToolbarModelImpl::GetFormattedFullURL() const {
base::string16 ToolbarModelImpl::GetURLForDisplay() const { base::string16 ToolbarModelImpl::GetURLForDisplay() const {
url_formatter::FormatUrlTypes format_types = url_formatter::FormatUrlTypes format_types =
#if defined(OS_IOS)
url_formatter::kFormatUrlTrimAfterHost |
#endif
url_formatter::kFormatUrlOmitDefaults | url_formatter::kFormatUrlOmitDefaults |
url_formatter::kFormatUrlOmitHTTPS | url_formatter::kFormatUrlOmitHTTPS |
url_formatter::kFormatUrlOmitTrivialSubdomains; url_formatter::kFormatUrlOmitTrivialSubdomains;
......
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