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

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

Issue 12755019: Add 2-lines summary to CC/Address for Wallet items. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: SubLabel and sub-label -> Sublabel and sublabel. Added description. 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
Index: chrome/browser/ui/autofill/autofill_dialog_models.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_models.cc b/chrome/browser/ui/autofill/autofill_dialog_models.cc
index c64147bfd0e0870f224ce4c44fc2eabd05b2879c..99c5479d10e8426fa2821038c151732a39661dfd 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_models.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_models.cc
@@ -43,6 +43,21 @@ void SuggestionsMenuModel::AddKeyedItemWithIcon(
SetIcon(items_.size() - 1, icon);
}
+void SuggestionsMenuModel::AddKeyedItemWithSublabel(
+ const std::string& key,
+ const string16& display_label, const string16& display_sublabel) {
+ AddKeyedItem(key, display_label);
+ SetSublabel(items_.size() - 1, display_sublabel);
+}
+
+void SuggestionsMenuModel::AddKeyedItemWithSublabelAndIcon(
+ const std::string& key,
+ const string16& display_label, const string16& display_sublabel,
+ const gfx::Image& icon) {
+ AddKeyedItemWithIcon(key, display_label, icon);
+ SetSublabel(items_.size() - 1, display_sublabel);
+}
+
void SuggestionsMenuModel::Reset() {
checked_item_ = 0;
items_.clear();

Powered by Google App Engine
This is Rietveld 408576698