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

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

Issue 2000863002: MacViews: support Views credit card unmask prompt (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build break with autofill namespace Created 4 years, 7 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
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
new file mode 100644
index 0000000000000000000000000000000000000000..b2b322cd7ea24df2cb7498816246ebd4372ce91b
--- /dev/null
+++ b/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_views.mm
@@ -0,0 +1,19 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// 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"
+
+namespace autofill {
+
+CardUnmaskPromptView* CreateCardUnmaskPromptView(
+ CardUnmaskPromptController* controller,
+ content::WebContents* web_contents) {
+ if (chrome::ToolkitViewsWebUIDialogsEnabled())
+ return new CardUnmaskPromptViews(controller, web_contents);
+ return new CardUnmaskPromptViewBridge(controller, web_contents);
+}
+
+}

Powered by Google App Engine
This is Rietveld 408576698