Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(871)

Unified Diff: content/shell/browser/shell_javascript_dialog_manager.h

Issue 2791873002: How to fix WebContentsImplBrowserTest.NoResetOnBeforeUnloadCanceledOnCommit. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/shell/browser/shell_javascript_dialog_manager.h
diff --git a/content/shell/browser/shell_javascript_dialog_manager.h b/content/shell/browser/shell_javascript_dialog_manager.h
index ba627bae6f0e7c2455e7d3c6e4ba43eb979d8984..69fd52e9f9b255fa946b2bc0d3364cc2fae6317b 100644
--- a/content/shell/browser/shell_javascript_dialog_manager.h
+++ b/content/shell/browser/shell_javascript_dialog_manager.h
@@ -45,9 +45,6 @@ class ShellJavaScriptDialogManager : public JavaScriptDialogManager {
void set_dialog_request_callback(const base::Closure& callback) {
dialog_request_callback_ = callback;
}
- void set_should_proceed_on_beforeunload(bool proceed) {
- should_proceed_on_beforeunload_ = proceed;
- }
private:
#if defined(OS_MACOSX) || defined(OS_WIN)
@@ -59,12 +56,6 @@ class ShellJavaScriptDialogManager : public JavaScriptDialogManager {
base::Closure dialog_request_callback_;
- // Whether to automatically proceed when asked to display a BeforeUnload
- // dialog.
- bool should_proceed_on_beforeunload_;
-
- DialogClosedCallback before_unload_callback_;
-
DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialogManager);
};

Powered by Google App Engine
This is Rietveld 408576698