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

Unified Diff: chrome/browser/geolocation/geolocation_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/geolocation/geolocation_infobar_delegate_android.cc
diff --git a/chrome/browser/geolocation/geolocation_infobar_delegate_android.cc b/chrome/browser/geolocation/geolocation_infobar_delegate_android.cc
index 02ad6d84b1eaec671870f9e2ea6e046182267ef9..523f08c2422f3fcd9dea0cbe8151d12f56e0da3c 100644
--- a/chrome/browser/geolocation/geolocation_infobar_delegate_android.cc
+++ b/chrome/browser/geolocation/geolocation_infobar_delegate_android.cc
@@ -16,23 +16,20 @@
infobars::InfoBar* GeolocationInfoBarDelegateAndroid::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 GeolocationInfoBarDelegateAndroid(
- requesting_frame, display_languages, callback))));
+ requesting_frame, callback))));
}
GeolocationInfoBarDelegateAndroid::GeolocationInfoBarDelegateAndroid(
const GURL& requesting_frame,
- const std::string& display_languages,
const PermissionSetCallback& callback)
: PermissionInfobarDelegate(requesting_frame,
content::PermissionType::GEOLOCATION,
CONTENT_SETTINGS_TYPE_GEOLOCATION,
callback),
- requesting_frame_(requesting_frame),
- display_languages_(display_languages) {}
+ requesting_frame_(requesting_frame) {}
GeolocationInfoBarDelegateAndroid::~GeolocationInfoBarDelegateAndroid() {}
@@ -48,5 +45,5 @@ int GeolocationInfoBarDelegateAndroid::GetIconId() const {
base::string16 GeolocationInfoBarDelegateAndroid::GetMessageText() const {
return l10n_util::GetStringFUTF16(IDS_GEOLOCATION_INFOBAR_QUESTION,
url_formatter::FormatUrlForSecurityDisplay(
- requesting_frame_, display_languages_));
+ requesting_frame_));
}

Powered by Google App Engine
This is Rietveld 408576698