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

Unified Diff: chrome/browser/ui/views/certificate_selector.cc

Issue 927293002: platformKeys: Hook up the certificate selection dialog to selectClientCertificates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cert_perms
Patch Set: Created 5 years, 10 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/views/certificate_selector.cc
diff --git a/chrome/browser/ui/views/certificate_selector.cc b/chrome/browser/ui/views/certificate_selector.cc
index 8bf01d245629c777036d08f5377e2e13cd946667..734be9ecd3ae478502ffdfb4e0d49eaef99ad35c 100644
--- a/chrome/browser/ui/views/certificate_selector.cc
+++ b/chrome/browser/ui/views/certificate_selector.cc
@@ -85,6 +85,10 @@ void CertificateSelector::Init(const base::string16& text) {
views::GridLayout* const layout = views::GridLayout::CreatePanel(this);
SetLayoutManager(layout);
+ // The dimensions of the certificate selector table view, in pixels.
+ static const int kTableViewWidth = 400;
+ static const int kTableViewHeight = 100;
+
const int column_set_id = 0;
views::ColumnSet* const column_set = layout->AddColumnSet(column_set_id);
column_set->AddColumn(views::GridLayout::FILL, views::GridLayout::FILL, 1,
@@ -95,14 +99,11 @@ void CertificateSelector::Init(const base::string16& text) {
label->SetMultiLine(true);
label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
label->SetAllowCharacterBreak(true);
+ label->SizeToFit(kTableViewWidth);
layout->AddView(label);
layout->AddPaddingRow(0, views::kRelatedControlVerticalSpacing);
- // The dimensions of the certificate selector table view, in pixels.
- static const int kTableViewWidth = 400;
- static const int kTableViewHeight = 100;
-
table_ = CreateCertTable();
layout->StartRow(1, column_set_id);
layout->AddView(table_->CreateParentIfNecessary(), 1, 1,

Powered by Google App Engine
This is Rietveld 408576698