summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc')
-rw-r--r--chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc19
1 files changed, 9 insertions, 10 deletions
diff --git a/chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc b/chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc
index 0e196e3..6c1be1d 100644
--- a/chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc
+++ b/chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc
@@ -66,8 +66,8 @@ class ExtensionUninstallDialogDelegateView : public views::DialogDelegateView {
private:
// views::DialogDelegate:
- virtual std::wstring GetDialogButtonLabel(
- MessageBoxFlags::DialogButton button) const OVERRIDE;
+ virtual string16 GetDialogButtonLabel(
+ ui::MessageBoxFlags::DialogButton button) const OVERRIDE;
virtual int GetDefaultDialogButton() const OVERRIDE {
return MessageBoxFlags::DIALOGBUTTON_CANCEL;
@@ -159,17 +159,16 @@ ExtensionUninstallDialogDelegateView::ExtensionUninstallDialogDelegateView(
ExtensionUninstallDialogDelegateView::~ExtensionUninstallDialogDelegateView() {
}
-std::wstring ExtensionUninstallDialogDelegateView::GetDialogButtonLabel(
- MessageBoxFlags::DialogButton button) const {
+string16 ExtensionUninstallDialogDelegateView::GetDialogButtonLabel(
+ ui::MessageBoxFlags::DialogButton button) const {
switch (button) {
- case MessageBoxFlags::DIALOGBUTTON_OK:
- return UTF16ToWide(
- l10n_util::GetStringUTF16(IDS_EXTENSION_PROMPT_UNINSTALL_BUTTON));
- case MessageBoxFlags::DIALOGBUTTON_CANCEL:
- return UTF16ToWide(l10n_util::GetStringUTF16(IDS_CANCEL));
+ case ui::MessageBoxFlags::DIALOGBUTTON_OK:
+ return l10n_util::GetStringUTF16(IDS_EXTENSION_PROMPT_UNINSTALL_BUTTON);
+ case ui::MessageBoxFlags::DIALOGBUTTON_CANCEL:
+ return l10n_util::GetStringUTF16(IDS_CANCEL);
default:
NOTREACHED();
- return L"";
+ return string16();
}
}