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

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

Issue 12906002: Add ability to defined ranges with different styles in StyledLabel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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
« no previous file with comments | « chrome/browser/chromeos/ui/echo_dialog_view.cc ('k') | ui/views/controls/styled_label.h » ('j') | 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 b47ee0d82f26df79a9d581e621b4d2e6e345eb9d..3cf494f735b5f42c25aba65db3fe74facdd55ff7 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
@@ -579,7 +579,9 @@ void AutofillDialogViews::UpdateAccountChooser() {
std::vector<ui::Range> link_ranges = controller_->LegalDocumentLinks();
for (size_t i = 0; i < link_ranges.size(); ++i) {
- footnote_view_->AddLink(link_ranges[i]);
+ footnote_view_->AddStyleRange(
+ link_ranges[i],
+ views::StyledLabel::RangeStyleInfo::CreateForLink());
}
ContentsPreferredSizeChanged();
« no previous file with comments | « chrome/browser/chromeos/ui/echo_dialog_view.cc ('k') | ui/views/controls/styled_label.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698