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

Unified Diff: chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.cc

Issue 12276010: Factor out uses of the WebContentsModalDialog interface from platform-independent code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove incorrect override Created 7 years, 10 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 | « chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.cc
diff --git a/chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.cc b/chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.cc
index c2b6053c97dc68da2019ff71a4383c95e6041edd..86eaa2ea1095243edead51910fe2316e3494b69c 100644
--- a/chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.cc
+++ b/chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.cc
@@ -54,7 +54,7 @@ TabModalConfirmDialogWebUI::TabModalConfirmDialogWebUI(
constrained_web_dialog_delegate_ =
CreateConstrainedWebDialog(profile, this, NULL, web_contents);
- delegate_->set_window(constrained_web_dialog_delegate_->GetWindow());
+ delegate_->set_close_delegate(this);
}
ui::ModalType TabModalConfirmDialogWebUI::GetDialogModalType() const {
@@ -96,7 +96,7 @@ void TabModalConfirmDialogWebUI::OnDialogClosed(
NOTREACHED() << "Missing or unreadable response from dialog";
}
- delegate_->set_window(NULL);
+ delegate_->set_close_delegate(NULL);
if (accepted)
delegate_->Accept();
else
@@ -117,3 +117,7 @@ void TabModalConfirmDialogWebUI::AcceptTabModalDialog() {
void TabModalConfirmDialogWebUI::CancelTabModalDialog() {
}
+
+void TabModalConfirmDialogWebUI::CloseDialog() {
+ constrained_web_dialog_delegate_->OnDialogCloseFromWebUI();
+}
« no previous file with comments | « chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698