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

Unified Diff: chrome/browser/notifications/notification_permission_infobar_delegate.cc

Issue 1841653003: Drop |languages| from {Format,Elide}Url* and IDNToUnicode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo in elide_url.cc 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 eea756d58d3c18949f1f4f8286cd92cbbac4493e..46b5a5c7b47ec1e774bbab69f18f5e7cae53c60c 100644
--- a/chrome/browser/notifications/notification_permission_infobar_delegate.cc
+++ b/chrome/browser/notifications/notification_permission_infobar_delegate.cc
@@ -16,25 +16,21 @@
infobars::InfoBar* NotificationPermissionInfobarDelegate::Create(
InfoBarService* infobar_service,
const GURL& requesting_frame,
- const std::string& display_languages,
const base::Callback<void(bool, bool)>& callback) {
return infobar_service->AddInfoBar(infobar_service->CreateConfirmInfoBar(
scoped_ptr<ConfirmInfoBarDelegate>(
new NotificationPermissionInfobarDelegate(requesting_frame,
- display_languages,
callback))));
}
NotificationPermissionInfobarDelegate::NotificationPermissionInfobarDelegate(
const GURL& requesting_frame,
- const std::string& display_languages,
const base::Callback<void(bool, bool)>& callback)
: PermissionInfobarDelegate(requesting_frame,
content::PermissionType::NOTIFICATIONS,
CONTENT_SETTINGS_TYPE_NOTIFICATIONS,
callback),
- requesting_frame_(requesting_frame),
- display_languages_(display_languages) {}
+ requesting_frame_(requesting_frame) {}
NotificationPermissionInfobarDelegate::~NotificationPermissionInfobarDelegate()
{}
@@ -51,6 +47,6 @@ int NotificationPermissionInfobarDelegate::GetIconId() const {
base::string16 NotificationPermissionInfobarDelegate::GetMessageText() const {
return l10n_util::GetStringFUTF16(
IDS_NOTIFICATION_PERMISSIONS,
- url_formatter::FormatUrlForSecurityDisplay(requesting_frame_.GetOrigin(),
- display_languages_));
+ url_formatter::FormatUrlForSecurityDisplay(
+ requesting_frame_.GetOrigin()));
}

Powered by Google App Engine
This is Rietveld 408576698