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

Unified Diff: chrome/browser/geolocation/geolocation_infobar_delegate_android.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/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 a4b18a60e7c4419861c7385d0ff6b734b2b93115..b81d233b50a290c49f0ffd8027585f5ffdf7011d 100644
--- a/chrome/browser/geolocation/geolocation_infobar_delegate_android.cc
+++ b/chrome/browser/geolocation/geolocation_infobar_delegate_android.cc
@@ -8,9 +8,7 @@
#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 "grit/generated_resources.h"
-#include "ui/base/l10n/l10n_util.h"
// static
infobars::InfoBar* GeolocationInfoBarDelegateAndroid::Create(
@@ -42,8 +40,6 @@ int GeolocationInfoBarDelegateAndroid::GetIconId() const {
return IDR_ANDROID_INFOBAR_GEOLOCATION;
}
-base::string16 GeolocationInfoBarDelegateAndroid::GetMessageText() const {
- return l10n_util::GetStringFUTF16(IDS_GEOLOCATION_INFOBAR_QUESTION,
- url_formatter::FormatUrlForSecurityDisplay(
- requesting_frame_));
+int GeolocationInfoBarDelegateAndroid::GetMessageResourceId() const {
+ return IDS_GEOLOCATION_INFOBAR_QUESTION;
}

Powered by Google App Engine
This is Rietveld 408576698