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

Unified Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.cc

Issue 90253002: Enable line-wrapping for link text in the legal portion. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/autofill/autofill_dialog_views.cc
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
index c8c91afc5695bf066c711242062dd30b96d52aff..689b816d8260555ac68d7a631e3d68467ca3015f 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
@@ -1258,9 +1258,10 @@ void AutofillDialogViews::UpdateAccountChooser() {
const std::vector<gfx::Range>& link_ranges =
delegate_->LegalDocumentLinks();
for (size_t i = 0; i < link_ranges.size(); ++i) {
- legal_document_view_->AddStyleRange(
- link_ranges[i],
- views::StyledLabel::RangeStyleInfo::CreateForLink());
+ views::StyledLabel::RangeStyleInfo link_range_info =
+ views::StyledLabel::RangeStyleInfo::CreateForLink();
+ link_range_info.disable_line_wrapping = false;
+ legal_document_view_->AddStyleRange(link_ranges[i], link_range_info);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698