Restore the previous behavior of beforeunload handler.

This reverts commit b1f30c1eb6.
This commit is contained in:
Cheng Zhao 2013-09-02 16:39:00 +08:00
Π ΠΎΠ΄ΠΈΡ‚Π΅Π»ΡŒ cfb957a603
ΠšΠΎΠΌΠΌΠΈΡ‚ 610ac5b045
1 ΠΈΠ·ΠΌΠ΅Π½Ρ‘Π½Π½Ρ‹Ρ… Ρ„Π°ΠΉΠ»ΠΎΠ²: 2 Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ΠΈΠΉ ΠΈ 1 ΡƒΠ΄Π°Π»Π΅Π½ΠΈΠΉ

ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€Π΅Ρ‚ΡŒ Ρ„Π°ΠΉΠ»

@ -13,7 +13,8 @@ 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);
}