diff options
author | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-17 02:54:43 +0000 |
---|---|---|
committer | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-17 02:54:43 +0000 |
commit | cb928b74a8f2a612d746a06321d14c34cffedb50 (patch) | |
tree | 65420c15864fc903263eb3084c21038fa6c6d99b /chrome/browser/external_tab_container_win.cc | |
parent | 196fd8a8240ffa5750867f4253475a1f440ca2a6 (diff) | |
download | chromium_src-cb928b74a8f2a612d746a06321d14c34cffedb50.zip chromium_src-cb928b74a8f2a612d746a06321d14c34cffedb50.tar.gz chromium_src-cb928b74a8f2a612d746a06321d14c34cffedb50.tar.bz2 |
Revert 114898 - 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
TBR=bauerb@chromium.org
Review URL: http://codereview.chromium.org/8962012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114903 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/external_tab_container_win.cc')
-rw-r--r-- | chrome/browser/external_tab_container_win.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/chrome/browser/external_tab_container_win.cc b/chrome/browser/external_tab_container_win.cc index 056076d..459936d 100644 --- a/chrome/browser/external_tab_container_win.cc +++ b/chrome/browser/external_tab_container_win.cc @@ -23,11 +23,9 @@ #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" @@ -698,9 +696,7 @@ void ExternalTabContainer::BeforeUnloadFired(TabContents* tab, void ExternalTabContainer::ShowRepostFormWarningDialog( TabContents* tab_contents) { - browser::ShowTabModalConfirmDialog( - new RepostFormWarningController(tab_contents), - GetNativeView(), tab_contents); + browser::ShowRepostFormWarningDialog(GetNativeView(), tab_contents); } void ExternalTabContainer::RunFileChooser( |