Index: chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.cc |
diff --git a/chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.cc b/chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.cc |
index 1e25c90532942e4f6f7a291c5c162682a52cd9e2..de49054a7eebd7f15f96aff6c49702be83bb6657 100644 |
--- a/chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.cc |
+++ b/chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.cc |
@@ -219,6 +219,7 @@ WebsiteSettingsPopupGtk::WebsiteSettingsPopupGtk( |
permissions_section_contents_(NULL), |
identity_contents_(NULL), |
connection_contents_(NULL), |
+ cert_transparency_contents_(NULL), |
first_visit_contents_(NULL), |
notebook_(NULL) { |
BrowserWindowGtk* browser_window = |
@@ -312,6 +313,11 @@ void WebsiteSettingsPopupGtk::InitContents() { |
FALSE, 0); |
gtk_box_pack_start(GTK_BOX(connection_tab), gtk_hseparator_new(), FALSE, |
FALSE, 0); |
+ cert_transparency_contents_ = gtk_vbox_new(FALSE, 0); |
+ gtk_box_pack_start(GTK_BOX(connection_tab), cert_transparency_contents_, |
+ FALSE, FALSE, 0); |
+ gtk_box_pack_start(GTK_BOX(connection_tab), gtk_hseparator_new(), FALSE, |
+ FALSE, 0); |
first_visit_contents_ = gtk_vbox_new(FALSE, 0); |
gtk_box_pack_start(GTK_BOX(connection_tab), first_visit_contents_, FALSE, |
FALSE, 0); |
@@ -547,6 +553,19 @@ void WebsiteSettingsPopupGtk::SetIdentityInfo( |
connection_contents_, |
WebsiteSettingsUI::GetConnectionIcon(identity_info.connection_status), |
section_content); |
+ |
+ // Create Certificate Transparency section. |
+ GtkWidget* ct_description = |
+ CreateTextLabel(identity_info.cert_transparency_description, |
+ kConnectionTabTextWidth, theme_service_, ui::kGdkBlack); |
+ section_content = gtk_vbox_new(FALSE, ui::kControlSpacing); |
+ gtk_box_pack_start(GTK_BOX(section_content), ct_description, FALSE, FALSE, |
+ 0); |
+ SetConnectionSection( |
+ cert_transparency_contents_, |
+ WebsiteSettingsUI::GetCertTransparencyIcon( |
+ identity_info.cert_transparency_status), |
+ section_content); |
} |
void WebsiteSettingsPopupGtk::SetFirstVisit(const string16& first_visit) { |