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

Unified Diff: chrome/browser/ui/views/options/passwords_page_view.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/options/passwords_page_view.cc
===================================================================
--- chrome/browser/ui/views/options/passwords_page_view.cc (revision 70272)
+++ chrome/browser/ui/views/options/passwords_page_view.cc (working copy)
@@ -70,24 +70,23 @@
return static_cast<int>(saved_signons_.size());
}
-std::wstring PasswordsTableModel::GetText(int row,
- int col_id) {
+string16 PasswordsTableModel::GetText(int row,
+ int col_id) {
switch (col_id) {
case IDS_PASSWORDS_PAGE_VIEW_SITE_COLUMN: { // Site.
// Force URL to have LTR directionality.
std::wstring url(saved_signons_[row]->display_url.display_url());
- url = UTF16ToWide(base::i18n::GetDisplayStringInLTRDirectionality(
- WideToUTF16(url)));
- return url;
+ return base::i18n::GetDisplayStringInLTRDirectionality(
+ WideToUTF16(url));
viettrungluu 2010/12/29 23:41:17 Should this be WideToUTF16Hack?
Avi (use Gerrit) 2010/12/30 00:04:15 Sure. In general the distinction between Hack and
}
case IDS_PASSWORDS_PAGE_VIEW_USERNAME_COLUMN: { // Username.
std::wstring username = GetPasswordFormAt(row)->username_value;
base::i18n::AdjustStringForLocaleDirection(&username);
- return username;
+ return WideToUTF16Hack(username);
}
default:
NOTREACHED() << "Invalid column.";
- return std::wstring();
+ return string16();
}
}

Powered by Google App Engine
This is Rietveld 408576698