Chromium Code Reviews| 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..ecc136515772f35f356f4b4836176e0114f3c3ac 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,10 @@ DownloadDangerPrompt* DownloadDangerPrompt::Create( |
| content::WebContents* web_contents, |
| bool show_context, |
| const OnDone& done) { |
| + if (ui::MaterialDesignController::IsSecondaryUiMaterial()) |
|
tapted
2017/01/25 00:32:17
nit: needs curlies since the block is over two lin
karandeepb
2017/01/25 00:51:51
Done.
|
| + 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. |