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

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: rebase 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..c135ccdcf0c375b83f46c4bd88d3008f839a4731 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_HTTP_AND_HTTPS);
DownloadItemModel model(item_);
base::string16 sub_status_text;
« no previous file with comments | « chrome/browser/android/url_utilities.cc ('k') | chrome/browser/geolocation/geolocation_infobar_delegate_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698