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

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: 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/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 c8be882953b1c698eb5a0ee8f2a428388e3d5e88..8ac84582c9d696c9afac4c7a1e472eb683d7e660 100644
--- a/chrome/browser/push_messaging/push_messaging_notification_manager.cc
+++ b/chrome/browser/push_messaging/push_messaging_notification_manager.cc
@@ -67,8 +67,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_HTTP_AND_HTTPS);
notification_data.direction =
PlatformNotificationData::DIRECTION_LEFT_TO_RIGHT;
notification_data.body =

Powered by Google App Engine
This is Rietveld 408576698