Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4216)

Unified Diff: chrome/browser/download/notification/download_item_notification.cc

Issue 1843063002: Don't show scheme in permission prompts if it is HTTPS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Oops mac compile again Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/notification/download_item_notification.cc
diff --git a/chrome/browser/download/notification/download_item_notification.cc b/chrome/browser/download/notification/download_item_notification.cc
index 7907f1b38047af780751acce4f673752b3a06369..180e744c715019eac635107b5b96e361a86e96ca 100644
--- a/chrome/browser/download/notification/download_item_notification.cc
+++ b/chrome/browser/download/notification/download_item_notification.cc
@@ -844,8 +844,8 @@ base::string16 DownloadItemNotification::GetStatusString() const {
return GetWarningStatusString();
// The hostname. (E.g.:"example.com" or "127.0.0.1")
- base::string16 host_name =
- url_formatter::FormatUrlForSecurityDisplayOmitScheme(item_->GetURL());
+ base::string16 host_name = url_formatter::FormatUrlForSecurityDisplay(
+ item_->GetURL(), url_formatter::SchemeDisplay::OMIT_WEB);
DownloadItemModel model(item_);
base::string16 sub_status_text;

Powered by Google App Engine
This is Rietveld 408576698