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

Unified Diff: chrome/browser/download/download_danger_prompt.cc

Issue 10972002: chrome: Add TabModalConfirmDialog interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no else after return Created 8 years, 3 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 | « no previous file | chrome/browser/plugins/plugin_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_danger_prompt.cc
diff --git a/chrome/browser/download/download_danger_prompt.cc b/chrome/browser/download/download_danger_prompt.cc
index fddba0c22f41cce414ae7e6d138780a42713ece9..59f4b32024fd5f9954aa5fed83f3f3f081e265fc 100644
--- a/chrome/browser/download/download_danger_prompt.cc
+++ b/chrome/browser/download/download_danger_prompt.cc
@@ -6,8 +6,8 @@
#include "base/bind.h"
#include "chrome/browser/download/chrome_download_manager_delegate.h"
-#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/tab_contents/tab_contents.h"
+#include "chrome/browser/ui/tab_modal_confirm_dialog.h"
#include "chrome/browser/ui/tab_modal_confirm_dialog_delegate.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/download_danger_type.h"
@@ -151,6 +151,6 @@ DownloadDangerPrompt* DownloadDangerPrompt::Create(
DownloadDangerPromptImpl* prompt =
new DownloadDangerPromptImpl(item, tab_contents, accepted, canceled);
// |prompt| will be deleted when the dialog is done.
- chrome::ShowTabModalConfirmDialog(prompt, tab_contents);
+ TabModalConfirmDialog::Create(prompt, tab_contents);
return prompt;
}
« no previous file with comments | « no previous file | chrome/browser/plugins/plugin_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698