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

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

Issue 8142026: Revert 104076 - Change std::wstring to string16 for views::Link (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 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
« no previous file with comments | « chrome/browser/chromeos/login/take_photo_view.cc ('k') | chrome/browser/chromeos/login/user_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/update_view.cc
===================================================================
--- chrome/browser/chromeos/login/update_view.cc (revision 104083)
+++ chrome/browser/chromeos/login/update_view.cc (working copy)
@@ -101,7 +101,7 @@
InitLabel(&escape_to_skip_label_);
escape_to_skip_label_->SetColor(kSkipLabelColor);
escape_to_skip_label_->SetText(
- ASCIIToUTF16("Press ESCAPE to skip (Non-official builds only)"));
+ L"Press ESCAPE to skip (Non-official builds only)");
#endif
UpdateLocalizedStrings();
@@ -113,17 +113,17 @@
}
void UpdateView::UpdateLocalizedStrings() {
- installing_updates_label_->SetText(l10n_util::GetStringFUTF16(
+ installing_updates_label_->SetText(UTF16ToWide(l10n_util::GetStringFUTF16(
IDS_INSTALLING_UPDATE,
- l10n_util::GetStringUTF16(IDS_PRODUCT_OS_NAME)));
+ l10n_util::GetStringUTF16(IDS_PRODUCT_OS_NAME))));
preparing_updates_label_->SetText(
- l10n_util::GetStringUTF16(IDS_UPDATE_AVAILABLE));
+ UTF16ToWide(l10n_util::GetStringUTF16(IDS_UPDATE_AVAILABLE)));
reboot_label_->SetText(
- l10n_util::GetStringUTF16(IDS_INSTALLING_UPDATE_DESC));
+ UTF16ToWide(l10n_util::GetStringUTF16(IDS_INSTALLING_UPDATE_DESC)));
manual_reboot_label_->SetText(
- l10n_util::GetStringUTF16(IDS_UPDATE_COMPLETED));
+ UTF16ToWide(l10n_util::GetStringUTF16(IDS_UPDATE_COMPLETED)));
checking_label_->SetText(
- l10n_util::GetStringUTF16(IDS_CHECKING_FOR_UPDATES));
+ UTF16ToWide(l10n_util::GetStringUTF16(IDS_CHECKING_FOR_UPDATES)));
}
void UpdateView::AddProgress(int ticks) {
@@ -260,7 +260,7 @@
NOTREACHED();
}
const std::string text =
- label_spoken ? UTF16ToUTF8(label_spoken->GetText()) : std::string();
+ label_spoken ? WideToUTF8(label_spoken->GetText()) : std::string();
WizardAccessibilityHelper::GetInstance()->MaybeSpeak(text.c_str(), false,
true);
}
« no previous file with comments | « chrome/browser/chromeos/login/take_photo_view.cc ('k') | chrome/browser/chromeos/login/user_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698