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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc

Issue 144073004: rAc: remove bold section labels on linux_aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ui::ResourceBundle::BoldOnlyIfItLooksGood() Created 6 years, 11 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/autofill/autofill_dialog_controller_impl.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
index 8defbd4c700f6b596f4af036710ab5e56cfa7e87..c8eb01bde1021035c7619a428d8b4c6899c7426d 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
@@ -1359,19 +1359,25 @@ gfx::Image AutofillDialogControllerImpl::ButtonStripImage() const {
return gfx::Image();
}
-base::string16 AutofillDialogControllerImpl::LabelForSection(
+SectionLabel AutofillDialogControllerImpl::LabelForSection(
DialogSection section) const {
+ int ids = 0;
switch (section) {
case SECTION_CC:
- return l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_SECTION_CC);
+ ids = IDS_AUTOFILL_DIALOG_SECTION_CC;
+ break;
case SECTION_BILLING:
case SECTION_CC_BILLING:
- return l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_SECTION_BILLING);
+ ids = IDS_AUTOFILL_DIALOG_SECTION_BILLING;
+ break;
case SECTION_SHIPPING:
- return l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_SECTION_SHIPPING);
+ ids = IDS_AUTOFILL_DIALOG_SECTION_SHIPPING;
+ break;
}
- NOTREACHED();
- return base::string16();
+
+ SectionLabel label = { l10n_util::GetStringUTF16(ids),
+ ui::ResourceBundle::BoldOnlyIfItLooksGood() };
+ return label;
}
SuggestionState AutofillDialogControllerImpl::SuggestionStateForSection(

Powered by Google App Engine
This is Rietveld 408576698