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

Unified Diff: chrome/browser/ui/views/autofill_profiles_view_win.cc

Issue 6044007: Remove wstring from TableModel.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 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
Index: chrome/browser/ui/views/autofill_profiles_view_win.cc
===================================================================
--- chrome/browser/ui/views/autofill_profiles_view_win.cc (revision 70272)
+++ chrome/browser/ui/views/autofill_profiles_view_win.cc (working copy)
@@ -1266,14 +1266,14 @@
return profiles_->size() + credit_cards_->size();
}
-std::wstring AutoFillProfilesView::ContentListTableModel::GetText(
+string16 AutoFillProfilesView::ContentListTableModel::GetText(
int row, int column_id) {
DCHECK(row < static_cast<int>(profiles_->size() + credit_cards_->size()));
if (row < static_cast<int>(profiles_->size())) {
- return profiles_->at(row).address.Label();
+ return WideToUTF16Hack(profiles_->at(row).address.Label());
} else {
row -= profiles_->size();
- return credit_cards_->at(row).credit_card.PreviewSummary();
+ return WideToUTF16Hack(credit_cards_->at(row).credit_card.PreviewSummary());
}
}

Powered by Google App Engine
This is Rietveld 408576698