summaryrefslogtreecommitdiffstats
path: root/content/shell/browser/shell_javascript_dialog_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/shell/browser/shell_javascript_dialog_manager.cc')
-rw-r--r--content/shell/browser/shell_javascript_dialog_manager.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/content/shell/browser/shell_javascript_dialog_manager.cc b/content/shell/browser/shell_javascript_dialog_manager.cc
index a312e8d..fdd5725 100644
--- a/content/shell/browser/shell_javascript_dialog_manager.cc
+++ b/content/shell/browser/shell_javascript_dialog_manager.cc
@@ -66,7 +66,6 @@ void ShellJavaScriptDialogManager::RunJavaScriptDialog(
void ShellJavaScriptDialogManager::RunBeforeUnloadDialog(
WebContents* web_contents,
- const base::string16& message_text,
bool is_reload,
const DialogClosedCallback& callback) {
if (!dialog_request_callback_.is_null()) {
@@ -83,16 +82,15 @@ void ShellJavaScriptDialogManager::RunBeforeUnloadDialog(
return;
}
- base::string16 new_message_text =
- message_text +
- base::ASCIIToUTF16("\n\nIs it OK to leave/reload this page?");
+ base::string16 message_text =
+ base::ASCIIToUTF16("Is it OK to leave/reload this page?");
gfx::NativeWindow parent_window = web_contents->GetTopLevelNativeWindow();
dialog_.reset(new ShellJavaScriptDialog(this,
parent_window,
JAVASCRIPT_MESSAGE_TYPE_CONFIRM,
- new_message_text,
+ message_text,
base::string16(), // default
callback));
#else