| Index: components/url_formatter/elide_url.h
|
| diff --git a/components/url_formatter/elide_url.h b/components/url_formatter/elide_url.h
|
| index acdccbf70e0adf5d293dbf2ba8f2d3ea587feb95..bb34f7c3f5fbeb79028a503d4af87f71fd056418 100644
|
| --- a/components/url_formatter/elide_url.h
|
| +++ b/components/url_formatter/elide_url.h
|
| @@ -84,6 +84,14 @@ base::string16 FormatUrlForSecurityDisplay(
|
|
|
| // This is a convenience function for formatting a url::Origin in a concise and
|
| // human-friendly way, to help users make security-related decisions.
|
| +//
|
| +// - Omits the port if it is 0 or the default for the scheme.
|
| +//
|
| +// Do not use this for origins which will be parsed or sent to other
|
| +// applications.
|
| +//
|
| +// Generally, prefer SchemeDisplay::SHOW to omitting the scheme unless there is
|
| +// plenty of indication as to whether the origin is secure elsewhere in the UX.
|
| base::string16 FormatOriginForSecurityDisplay(
|
| const url::Origin& origin,
|
| const SchemeDisplay scheme_display = SchemeDisplay::SHOW);
|
|
|