diff --git a/browser/atom_javascript_dialog_manager.cc b/browser/atom_javascript_dialog_manager.cc index 83f80a89f572..f06a42680b74 100644 --- a/browser/atom_javascript_dialog_manager.cc +++ b/browser/atom_javascript_dialog_manager.cc @@ -13,8 +13,7 @@ void AtomJavaScriptDialogManager::RunBeforeUnloadDialog( const string16& message_text, bool is_reload, const DialogClosedCallback& callback) { - - bool prevent_reload = message_text.empty() || + bool prevent_reload = !message_text.empty() || message_text == ASCIIToUTF16("false"); callback.Run(!prevent_reload, message_text); }