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

Unified Diff: chrome/browser/notifications/notification_permission_infobar_delegate.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/notifications/notification_permission_infobar_delegate.cc
diff --git a/chrome/browser/notifications/notification_permission_infobar_delegate.cc b/chrome/browser/notifications/notification_permission_infobar_delegate.cc
index 39a1f39e86d47072612edba5e0bf6129cb1ad1f0..b23ce55b6028f6057c5de2185a24717e76cf60b2 100644
--- a/chrome/browser/notifications/notification_permission_infobar_delegate.cc
+++ b/chrome/browser/notifications/notification_permission_infobar_delegate.cc
@@ -8,9 +8,6 @@
#include "chrome/browser/infobars/infobar_service.h"
#include "chrome/grit/generated_resources.h"
#include "components/infobars/core/infobar.h"
-#include "components/url_formatter/elide_url.h"
-#include "net/base/escape.h"
-#include "ui/base/l10n/l10n_util.h"
// static
infobars::InfoBar* NotificationPermissionInfobarDelegate::Create(
@@ -44,9 +41,6 @@ int NotificationPermissionInfobarDelegate::GetIconId() const {
return IDR_ANDROID_INFOBAR_NOTIFICATIONS;
}
-base::string16 NotificationPermissionInfobarDelegate::GetMessageText() const {
- return l10n_util::GetStringFUTF16(
- IDS_NOTIFICATION_PERMISSIONS,
- url_formatter::FormatUrlForSecurityDisplay(
- requesting_frame_.GetOrigin()));
+int NotificationPermissionInfobarDelegate::GetMessageResourceId() const {
+ return IDS_NOTIFICATION_PERMISSIONS;
}

Powered by Google App Engine
This is Rietveld 408576698