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

Unified Diff: chrome/browser/chromeos/login/user_controller.cc

Issue 6156001: Remove wstring from l10n_util. Part 8, the last part.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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/chromeos/login/user_controller.cc
===================================================================
--- chrome/browser/chromeos/login/user_controller.cc (revision 70736)
+++ chrome/browser/chromeos/login/user_controller.cc (working copy)
@@ -192,9 +192,9 @@
std::wstring UserController::GetNameTooltip() const {
if (is_new_user_)
- return l10n_util::GetString(IDS_ADD_USER);
+ return UTF16ToWide(l10n_util::GetStringUTF16(IDS_ADD_USER));
if (is_guest_)
- return l10n_util::GetString(IDS_GO_INCOGNITO_BUTTON);
+ return UTF16ToWide(l10n_util::GetStringUTF16(IDS_GO_INCOGNITO_BUTTON));
// Tooltip contains user's display name and his email domain to distinguish
// this user from the other one with the same display name.
@@ -415,12 +415,12 @@
kUnselectedUsernameFontDelta, gfx::Font::BOLD);
std::wstring text;
if (is_guest_) {
- text = l10n_util::GetString(IDS_GUEST);
+ text = UTF16ToWide(l10n_util::GetStringUTF16(IDS_GUEST));
} else if (is_new_user_) {
// Add user should have label only in activated state.
// When new user is the only, label is not needed.
if (type == WM_IPC_WINDOW_LOGIN_LABEL && index != 0)
- text = l10n_util::GetString(IDS_ADD_USER);
+ text = UTF16ToWide(l10n_util::GetStringUTF16(IDS_ADD_USER));
} else {
text = UTF8ToWide(user_.GetDisplayName());
}
« no previous file with comments | « chrome/browser/chromeos/login/update_view.cc ('k') | chrome/browser/chromeos/login/user_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698