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

Unified Diff: chrome/browser/push_messaging/push_messaging_notification_manager.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/push_messaging/push_messaging_notification_manager.cc
diff --git a/chrome/browser/push_messaging/push_messaging_notification_manager.cc b/chrome/browser/push_messaging/push_messaging_notification_manager.cc
index dfb0c7fd6ea9b676d13ab8ad199c5c68bf19e902..5946d972cc2026d0af0f99877e856bd4748e24a4 100644
--- a/chrome/browser/push_messaging/push_messaging_notification_manager.cc
+++ b/chrome/browser/push_messaging/push_messaging_notification_manager.cc
@@ -66,8 +66,8 @@ NotificationDatabaseData CreateDatabaseData(
const GURL& origin,
int64_t service_worker_registration_id) {
PlatformNotificationData notification_data;
- notification_data.title =
- url_formatter::FormatUrlForSecurityDisplayOmitScheme(origin);
+ notification_data.title = url_formatter::FormatUrlForSecurityDisplay(
+ origin, url_formatter::SchemeDisplay::OMIT_WEB);
notification_data.direction =
PlatformNotificationData::DIRECTION_LEFT_TO_RIGHT;
notification_data.body =

Powered by Google App Engine
This is Rietveld 408576698