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

Unified Diff: trunk/src/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.mm

Issue 21372006: Revert 212329 "Reland "Close web contents modal dialogs on conte..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 5 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: trunk/src/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.mm
===================================================================
--- trunk/src/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.mm (revision 214772)
+++ trunk/src/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.mm (working copy)
@@ -78,14 +78,6 @@
return this;
}
-void ConstrainedWindowMac::SetPreventCloseOnLoadStart(bool prevent) {
- WebContentsModalDialogManager* web_contents_modal_dialog_manager =
- WebContentsModalDialogManager::FromWebContents(web_contents_);
- web_contents_modal_dialog_manager->SetPreventCloseOnLoadStart(
- GetNativeDialog(),
- prevent);
-}
-
NSWindow* ConstrainedWindowMac::GetParentWindow() const {
// Tab contents in a tabbed browser may not be inside a window. For this
// reason use a browser window if possible.

Powered by Google App Engine
This is Rietveld 408576698