summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/create_application_shortcut_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/views/create_application_shortcut_view.cc')
-rw-r--r--chrome/browser/ui/views/create_application_shortcut_view.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/chrome/browser/ui/views/create_application_shortcut_view.cc b/chrome/browser/ui/views/create_application_shortcut_view.cc
index cc345a0..0aee131 100644
--- a/chrome/browser/ui/views/create_application_shortcut_view.cc
+++ b/chrome/browser/ui/views/create_application_shortcut_view.cc
@@ -323,13 +323,11 @@ gfx::Size CreateApplicationShortcutView::GetPreferredSize() {
return gfx::Size(kDialogWidth, height);
}
-std::wstring CreateApplicationShortcutView::GetDialogButtonLabel(
- MessageBoxFlags::DialogButton button) const {
- if (button == MessageBoxFlags::DIALOGBUTTON_OK) {
- return UTF16ToWide(l10n_util::GetStringUTF16(IDS_CREATE_SHORTCUTS_COMMIT));
- }
-
- return std::wstring();
+string16 CreateApplicationShortcutView::GetDialogButtonLabel(
+ ui::MessageBoxFlags::DialogButton button) const {
+ if (button == ui::MessageBoxFlags::DIALOGBUTTON_OK)
+ return l10n_util::GetStringUTF16(IDS_CREATE_SHORTCUTS_COMMIT);
+ return string16();
}
bool CreateApplicationShortcutView::IsDialogButtonEnabled(