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

Unified Diff: chrome/browser/ui/views/download/download_danger_prompt_views.cc

Issue 2630243003: MacViews: Enable views based Download recovery dialog behind secondary-ui-md flag. (Closed)
Patch Set: Correct method comment. Created 3 years, 11 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/cocoa/download/download_danger_prompt_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/download/download_danger_prompt_views.cc
diff --git a/chrome/browser/ui/views/download/download_danger_prompt_views.cc b/chrome/browser/ui/views/download/download_danger_prompt_views.cc
index ca205beeba06dc5c987831ebe95c5534e457aaa9..2cd47e876dfec6844485d03ba6d3fc1cd5ab114e 100644
--- a/chrome/browser/ui/views/download/download_danger_prompt_views.cc
+++ b/chrome/browser/ui/views/download/download_danger_prompt_views.cc
@@ -17,6 +17,7 @@
#include "content/public/browser/download_item.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
+#include "ui/base/ui_features.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/grid_layout.h"
@@ -325,11 +326,24 @@ void DownloadDangerPromptViews::RunDone(Action action) {
} // namespace
+#if !defined(OS_MACOSX) || BUILDFLAG(MAC_VIEWS_BROWSER)
+// static
DownloadDangerPrompt* DownloadDangerPrompt::Create(
content::DownloadItem* item,
content::WebContents* web_contents,
bool show_context,
const OnDone& done) {
+ return DownloadDangerPrompt::CreateDownloadDangerPromptViews(
+ item, web_contents, show_context, done);
+}
+#endif // !OS_MACOSX || MAC_VIEWS_BROWSER
+
+// static
+DownloadDangerPrompt* DownloadDangerPrompt::CreateDownloadDangerPromptViews(
+ content::DownloadItem* item,
+ content::WebContents* web_contents,
+ bool show_context,
+ const OnDone& done) {
DownloadDangerPromptViews* download_danger_prompt =
new DownloadDangerPromptViews(item, show_context, done);
constrained_window::ShowWebModalDialogViews(download_danger_prompt,
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_danger_prompt_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698