summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/uninstall_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/views/uninstall_view.cc')
-rw-r--r--chrome/browser/ui/views/uninstall_view.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/chrome/browser/ui/views/uninstall_view.cc b/chrome/browser/ui/views/uninstall_view.cc
index c83440e..decc136 100644
--- a/chrome/browser/ui/views/uninstall_view.cc
+++ b/chrome/browser/ui/views/uninstall_view.cc
@@ -116,14 +116,13 @@ bool UninstallView::Cancel() {
return true;
}
-std::wstring UninstallView::GetDialogButtonLabel(
- MessageBoxFlags::DialogButton button) const {
+string16 UninstallView::GetDialogButtonLabel(
+ ui::MessageBoxFlags::DialogButton button) const {
// We only want to give custom name to OK button - 'Uninstall'. Cancel
// button remains same.
- std::wstring label = L"";
- if (button == MessageBoxFlags::DIALOGBUTTON_OK)
- label = UTF16ToWide(l10n_util::GetStringUTF16(IDS_UNINSTALL_BUTTON_TEXT));
- return label;
+ if (button == ui::MessageBoxFlags::DIALOGBUTTON_OK)
+ return l10n_util::GetStringUTF16(IDS_UNINSTALL_BUTTON_TEXT);
+ return string16();
}
void UninstallView::ButtonPressed(