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

Unified Diff: chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.cc

Issue 27026002: CT: Adding preliminary Certificate Transparency support to Chromium. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Distinguish between SCTs from unknown logs and unverified ones Created 7 years, 1 month 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/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) {

Powered by Google App Engine
This is Rietveld 408576698