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

Unified Diff: chrome/browser/ui/website_settings/website_settings_ui.cc

Issue 620983002: Add Permissions to the PageInfo dialog on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@page_info_dialog_shell_only_v2
Patch Set: Final rebase Created 6 years, 2 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/ui/website_settings/website_settings_ui.cc
diff --git a/chrome/browser/ui/website_settings/website_settings_ui.cc b/chrome/browser/ui/website_settings/website_settings_ui.cc
index 123a36dc5133dcefea5fda30954615d9fdd377ee..4232aa7835f3cb81de2605f2a89ff091f7ad8245 100644
--- a/chrome/browser/ui/website_settings/website_settings_ui.cc
+++ b/chrome/browser/ui/website_settings/website_settings_ui.cc
@@ -257,6 +257,7 @@ int WebsiteSettingsUI::GetIdentityIconID(
int resource_id = IDR_PAGEINFO_INFO;
switch (status) {
case WebsiteSettings::SITE_IDENTITY_STATUS_UNKNOWN:
+ case WebsiteSettings::SITE_IDENTITY_STATUS_INTERNAL_PAGE:
break;
case WebsiteSettings::SITE_IDENTITY_STATUS_CERT:
case WebsiteSettings::SITE_IDENTITY_STATUS_EV_CERT:
@@ -297,6 +298,7 @@ int WebsiteSettingsUI::GetConnectionIconID(
int resource_id = IDR_PAGEINFO_INFO;
switch (status) {
case WebsiteSettings::SITE_CONNECTION_STATUS_UNKNOWN:
+ case WebsiteSettings::SITE_CONNECTION_STATUS_INTERNAL_PAGE:
break;
case WebsiteSettings::SITE_CONNECTION_STATUS_ENCRYPTED:
resource_id = IDR_PAGEINFO_GOOD;
@@ -337,25 +339,3 @@ const gfx::Image& WebsiteSettingsUI::GetFirstVisitIcon(
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
return rb.GetNativeImageNamed(GetFirstVisitIconID(first_visit));
}
-
-// static
-int WebsiteSettingsUI::GetConnectionSummaryMessageID(
- WebsiteSettings::SiteConnectionStatus status) {
- switch (status) {
- case WebsiteSettings::SITE_CONNECTION_STATUS_UNKNOWN:
- return IDS_PAGE_INFO_UNENCRYPTED_CONNECTION_SUMMARY_TEXT;
- case WebsiteSettings::SITE_CONNECTION_STATUS_ENCRYPTED:
- return IDS_PAGE_INFO_ENCRYPTED_CONNECTION_SUMMARY_TEXT;
- case WebsiteSettings::SITE_CONNECTION_STATUS_MIXED_CONTENT:
- return IDS_PAGE_INFO_MIXED_CONTENT_CONNECTION_SUMMARY_TEXT;
- case WebsiteSettings::SITE_CONNECTION_STATUS_UNENCRYPTED:
- return IDS_PAGE_INFO_UNENCRYPTED_CONNECTION_SUMMARY_TEXT;
- case WebsiteSettings::SITE_CONNECTION_STATUS_ENCRYPTED_ERROR:
- return IDS_PAGE_INFO_UNENCRYPTED_CONNECTION_SUMMARY_TEXT;
- case WebsiteSettings::SITE_CONNECTION_STATUS_INTERNAL_PAGE:
- return IDS_PAGE_INFO_INTERNAL_PAGE;
- default:
- NOTREACHED();
- return 0;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698