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

Unified Diff: content/test/content_browser_test_utils_internal.cc

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
« no previous file with comments | « content/test/content_browser_test_utils_internal.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/content_browser_test_utils_internal.cc
diff --git a/content/test/content_browser_test_utils_internal.cc b/content/test/content_browser_test_utils_internal.cc
index 45664e84b90ef937a74605082fe3d425554abaa0..586fa840ee146e983a7e69ff3348b6d260d07c6e 100644
--- a/content/test/content_browser_test_utils_internal.cc
+++ b/content/test/content_browser_test_utils_internal.cc
@@ -35,7 +35,6 @@
#include "content/public/test/content_browser_test_utils.h"
#include "content/public/test/test_frame_navigation_observer.h"
#include "content/shell/browser/shell.h"
-#include "content/shell/browser/shell_javascript_dialog_manager.h"
#include "net/url_request/url_request.h"
namespace content {
@@ -49,13 +48,6 @@ void NavigateFrameToURL(FrameTreeNode* node, const GURL& url) {
observer.Wait();
}
-void SetShouldProceedOnBeforeUnload(Shell* shell, bool proceed) {
- ShellJavaScriptDialogManager* manager =
- static_cast<ShellJavaScriptDialogManager*>(
- shell->GetJavaScriptDialogManager(shell->web_contents()));
- manager->set_should_proceed_on_beforeunload(proceed);
-}
-
RenderFrameHost* ConvertToRenderFrameHost(FrameTreeNode* frame_tree_node) {
return frame_tree_node->current_frame_host();
}
« no previous file with comments | « content/test/content_browser_test_utils_internal.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698