diff --git a/atom/browser/atom_javascript_dialog_manager.cc b/atom/browser/atom_javascript_dialog_manager.cc index dd574af9dbff..24197915e61e 100644 --- a/atom/browser/atom_javascript_dialog_manager.cc +++ b/atom/browser/atom_javascript_dialog_manager.cc @@ -58,6 +58,12 @@ void AtomJavaScriptDialogManager::RunBeforeUnloadDialog( callback.Run(false, base::ASCIIToUTF16("This should not be displayed")); } +void AtomJavaScriptDialogManager::CancelDialogs( + content::WebContents* web_contents, + bool suppress_callbacks, + bool reset_state) { +} + // static void AtomJavaScriptDialogManager::OnMessageBoxCallback( const DialogClosedCallback& callback, int code) { diff --git a/atom/browser/atom_javascript_dialog_manager.h b/atom/browser/atom_javascript_dialog_manager.h index af94d7cec884..e5bb6114bc92 100644 --- a/atom/browser/atom_javascript_dialog_manager.h +++ b/atom/browser/atom_javascript_dialog_manager.h @@ -26,9 +26,9 @@ class AtomJavaScriptDialogManager : public content::JavaScriptDialogManager { content::WebContents* web_contents, bool is_reload, const DialogClosedCallback& callback) override; - void CancelActiveAndPendingDialogs( - content::WebContents* web_contents) override {} - void ResetDialogState(content::WebContents* web_contents) override {}; + void CancelDialogs(content::WebContents* web_contents, + bool suppress_callbacks, + bool reset_state) override; private: static void OnMessageBoxCallback(const DialogClosedCallback& callback,