summaryrefslogtreecommitdiffstats
path: root/chrome/browser/external_tab_container_win.cc
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-17 02:21:02 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-17 02:21:02 +0000
commitd830d93a73c919f83624a4d18fdc9a0d44eab40f (patch)
treee7b2ec991ab84e63fa2127868c33ddfe5698f4c4 /chrome/browser/external_tab_container_win.cc
parent8c77c434f3013c48411d69a98caa832e2da93000 (diff)
downloadchromium_src-d830d93a73c919f83624a4d18fdc9a0d44eab40f.zip
chromium_src-d830d93a73c919f83624a4d18fdc9a0d44eab40f.tar.gz
chromium_src-d830d93a73c919f83624a4d18fdc9a0d44eab40f.tar.bz2
Add TabModalConfirmDialogDelegate to show simple tab-modal confirmation dialogs.
This CL carves a TabModalConfirmDialogDelegate class (modeled after ConfirmInfobarDelegate) out of RepostFormWarningController and makes it a subclass thereof. It also removes the ShowRepostFormWarning method from BrowserWindow and its subclasses, in favor of a method in browser_dialogs.h. BUG=92795 TEST=none Review URL: http://codereview.chromium.org/8658005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114898 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/external_tab_container_win.cc')
-rw-r--r--chrome/browser/external_tab_container_win.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/external_tab_container_win.cc b/chrome/browser/external_tab_container_win.cc
index 459936d..056076d 100644
--- a/chrome/browser/external_tab_container_win.cc
+++ b/chrome/browser/external_tab_container_win.cc
@@ -23,9 +23,11 @@
#include "chrome/browser/history/history_types.h"
#include "chrome/browser/infobars/infobar_tab_helper.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/repost_form_warning_controller.h"
#include "chrome/browser/ui/app_modal_dialogs/message_box_handler.h"
#include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h"
#include "chrome/browser/ui/browser.h"
+#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "chrome/browser/ui/views/browser_dialogs.h"
@@ -696,7 +698,9 @@ void ExternalTabContainer::BeforeUnloadFired(TabContents* tab,
void ExternalTabContainer::ShowRepostFormWarningDialog(
TabContents* tab_contents) {
- browser::ShowRepostFormWarningDialog(GetNativeView(), tab_contents);
+ browser::ShowTabModalConfirmDialog(
+ new RepostFormWarningController(tab_contents),
+ GetNativeView(), tab_contents);
}
void ExternalTabContainer::RunFileChooser(