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

Unified Diff: chrome/browser/ui/cocoa/download/download_danger_prompt_impl.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/BUILD.gn ('k') | chrome/browser/ui/views/download/download_danger_prompt_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/download/download_danger_prompt_impl.cc
diff --git a/chrome/browser/ui/cocoa/download/download_danger_prompt_impl.cc b/chrome/browser/ui/cocoa/download/download_danger_prompt_impl.cc
index f37dfe5883fe309a37a2c0e1d1757e3e3bee7aba..7e127853a69dda8a52261a3f05a7c40344aa6754 100644
--- a/chrome/browser/ui/cocoa/download/download_danger_prompt_impl.cc
+++ b/chrome/browser/ui/cocoa/download/download_danger_prompt_impl.cc
@@ -18,6 +18,7 @@
#include "content/public/browser/download_danger_type.h"
#include "content/public/browser/download_item.h"
#include "ui/base/l10n/l10n_util.h"
+#include "ui/base/material_design/material_design_controller.h"
#include "url/gurl.h"
using extensions::ExperienceSamplingEvent;
@@ -256,6 +257,11 @@ DownloadDangerPrompt* DownloadDangerPrompt::Create(
content::WebContents* web_contents,
bool show_context,
const OnDone& done) {
+ if (ui::MaterialDesignController::IsSecondaryUiMaterial()) {
+ return DownloadDangerPrompt::CreateDownloadDangerPromptViews(
+ item, web_contents, show_context, done);
+ }
+
DownloadDangerPromptImpl* prompt =
new DownloadDangerPromptImpl(item, web_contents, show_context, done);
// |prompt| will be deleted when the dialog is done.
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/views/download/download_danger_prompt_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698