| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/browser_dialogs.h" | |
| 6 #include "chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h" | 5 #include "chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h" |
| 7 #include "chrome/browser/ui/views/autofill/card_unmask_prompt_views.h" | 6 #include "chrome/browser/ui/views/autofill/card_unmask_prompt_views.h" |
| 7 #include "ui/base/material_design/material_design_controller.h" |
| 8 | 8 |
| 9 namespace autofill { | 9 namespace autofill { |
| 10 | 10 |
| 11 CardUnmaskPromptView* CreateCardUnmaskPromptView( | 11 CardUnmaskPromptView* CreateCardUnmaskPromptView( |
| 12 CardUnmaskPromptController* controller, | 12 CardUnmaskPromptController* controller, |
| 13 content::WebContents* web_contents) { | 13 content::WebContents* web_contents) { |
| 14 if (chrome::ToolkitViewsWebUIDialogsEnabled()) | 14 if (ui::MaterialDesignController::IsSecondaryUiMaterial()) |
| 15 return new CardUnmaskPromptViews(controller, web_contents); | 15 return new CardUnmaskPromptViews(controller, web_contents); |
| 16 return new CardUnmaskPromptViewBridge(controller, web_contents); | 16 return new CardUnmaskPromptViewBridge(controller, web_contents); |
| 17 } | 17 } |
| 18 | 18 |
| 19 } | 19 } |
| OLD | NEW |