For security reasons, we want to ensure that the domain
name of the current page is being shown in the title bar.
Use BrowserActivity's method of building the url for the
title bar, which also shows https if it is a secure site.
* or an empty string if, for example, the URL in question is a
* file:// URL with no hostname.
*/
- private static String buildTitleUrl(String url) {
+ /* package */ static String buildTitleUrl(String url) {
String titleUrl = null;
if (url != null) {
} else {
mTitle.setText(title);
}
- mUrl.setText(url);
+ mUrl.setText(BrowserActivity.buildTitleUrl(url.toString()));
}
/* package */ void setToTabPicker() {