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

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: Rebased. 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 42ef555f9bc61cff14c30bb6cd7bd31275b27cd6..ab901d0cd58a930cdb92f1224c48f0a0f9d4ab97 100644
--- a/chrome/browser/ui/views/certificate_selector.cc
+++ b/chrome/browser/ui/views/certificate_selector.cc
@@ -97,6 +97,10 @@ void CertificateSelector::InitWithText(const base::string16& text) {
views::GridLayout* const layout = views::GridLayout::CreatePanel(this);
SetLayoutManager(layout);
+ // The dimensions of the certificate selector table view, in pixels.
+ const int kTableViewWidth = 400;
+ const int kTableViewHeight = 100;
+
const int kColumnSetId = 0;
views::ColumnSet* const column_set = layout->AddColumnSet(kColumnSetId);
column_set->AddColumn(views::GridLayout::FILL, views::GridLayout::FILL, 1,
@@ -107,14 +111,11 @@ void CertificateSelector::InitWithText(const base::string16& text) {
label->SetMultiLine(true);
label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
label->SetAllowCharacterBreak(true);
+ label->SizeToFit(kTableViewWidth);
layout->AddView(label.release());
layout->AddPaddingRow(0, views::kRelatedControlVerticalSpacing);
- // The dimensions of the certificate selector table view, in pixels.
- const int kTableViewWidth = 400;
- const int kTableViewHeight = 100;
-
std::vector<ui::TableColumn> columns;
columns.push_back(ui::TableColumn());
table_ = new views::TableView(model_.get(), columns, views::TEXT_ONLY,

Powered by Google App Engine
This is Rietveld 408576698