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

Unified Diff: chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_views.mm

Issue 2524213002: MacViews: Consolidate flags. Just use --secondary-ui-md to enable MacViews. (Closed)
Patch Set: rebase for r435075 Created 4 years 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
Index: chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_views.mm
diff --git a/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_views.mm b/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_views.mm
index b2b322cd7ea24df2cb7498816246ebd4372ce91b..f764f82ea5fa64fd2d731d8fb63249d80218ecf9 100644
--- a/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_views.mm
+++ b/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_views.mm
@@ -2,16 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h"
#include "chrome/browser/ui/views/autofill/card_unmask_prompt_views.h"
+#include "ui/base/material_design/material_design_controller.h"
namespace autofill {
CardUnmaskPromptView* CreateCardUnmaskPromptView(
CardUnmaskPromptController* controller,
content::WebContents* web_contents) {
- if (chrome::ToolkitViewsWebUIDialogsEnabled())
+ if (ui::MaterialDesignController::IsSecondaryUiMaterial())
return new CardUnmaskPromptViews(controller, web_contents);
return new CardUnmaskPromptViewBridge(controller, web_contents);
}
« no previous file with comments | « chrome/browser/ui/browser_dialogs_mac.cc ('k') | chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698