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

Unified Diff: chrome/browser/media/protected_media_identifier_infobar_delegate_android.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/media/protected_media_identifier_infobar_delegate_android.cc
diff --git a/chrome/browser/media/protected_media_identifier_infobar_delegate_android.cc b/chrome/browser/media/protected_media_identifier_infobar_delegate_android.cc
index 8cc0816e9b67b38bd42f051bd5a0fa6b9d5bfe5d..6b08049ec9ec5cf1c7d856db50651c711ac47aa3 100644
--- a/chrome/browser/media/protected_media_identifier_infobar_delegate_android.cc
+++ b/chrome/browser/media/protected_media_identifier_infobar_delegate_android.cc
@@ -17,26 +17,23 @@
infobars::InfoBar* ProtectedMediaIdentifierInfoBarDelegateAndroid::Create(
InfoBarService* infobar_service,
const GURL& requesting_frame,
- const std::string& display_languages,
const PermissionSetCallback& callback) {
return infobar_service->AddInfoBar(
infobar_service->CreateConfirmInfoBar(scoped_ptr<ConfirmInfoBarDelegate>(
new ProtectedMediaIdentifierInfoBarDelegateAndroid(
- requesting_frame, display_languages, callback))));
+ requesting_frame, callback))));
}
ProtectedMediaIdentifierInfoBarDelegateAndroid::
ProtectedMediaIdentifierInfoBarDelegateAndroid(
const GURL& requesting_frame,
- const std::string& display_languages,
const PermissionSetCallback& callback)
: PermissionInfobarDelegate(
requesting_frame,
content::PermissionType::PROTECTED_MEDIA_IDENTIFIER,
CONTENT_SETTINGS_TYPE_PROTECTED_MEDIA_IDENTIFIER,
callback),
- requesting_frame_(requesting_frame),
- display_languages_(display_languages) {}
+ requesting_frame_(requesting_frame) {}
ProtectedMediaIdentifierInfoBarDelegateAndroid::
~ProtectedMediaIdentifierInfoBarDelegateAndroid() {}
@@ -54,8 +51,7 @@ base::string16 ProtectedMediaIdentifierInfoBarDelegateAndroid::GetMessageText()
const {
return l10n_util::GetStringFUTF16(
IDS_PROTECTED_MEDIA_IDENTIFIER_INFOBAR_QUESTION,
- url_formatter::FormatUrlForSecurityDisplay(requesting_frame_,
- display_languages_));
+ url_formatter::FormatUrlForSecurityDisplay(requesting_frame_));
}
base::string16 ProtectedMediaIdentifierInfoBarDelegateAndroid::GetLinkText()

Powered by Google App Engine
This is Rietveld 408576698