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

Unified Diff: trunk/src/chrome/browser/ui/cocoa/tab_modal_confirm_dialog_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/tab_modal_confirm_dialog_mac.mm
===================================================================
--- trunk/src/chrome/browser/ui/cocoa/tab_modal_confirm_dialog_mac.mm (revision 214772)
+++ trunk/src/chrome/browser/ui/cocoa/tab_modal_confirm_dialog_mac.mm (working copy)
@@ -88,7 +88,7 @@
[[CustomConstrainedWindowSheet alloc]
initWithCustomWindow:[alert_ window]]);
window_.reset(new ConstrainedWindowMac(this, web_contents, sheet));
- delegate_->set_operations_delegate(this);
+ delegate_->set_close_delegate(this);
}
TabModalConfirmDialogMac::~TabModalConfirmDialogMac() {
@@ -106,10 +106,6 @@
window_->CloseWebContentsModalDialog();
}
-void TabModalConfirmDialogMac::SetPreventCloseOnLoadStart(bool prevent) {
- window_->SetPreventCloseOnLoadStart(prevent);
-}
-
void TabModalConfirmDialogMac::OnConstrainedWindowClosed(
ConstrainedWindowMac* window) {
delete this;

Powered by Google App Engine
This is Rietveld 408576698