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

Unified Diff: chrome/browser/ui/cocoa/passwords/passwords_bubble_cocoa.mm

Issue 2808823002: MacViews: Allows the toolkit-views Manage Passwords Dialog to be used (Closed)
Patch Set: MacViews: Allows the toolkit-views Manage Passwords Dialog to be used (tests compile) Created 3 years, 8 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/passwords/passwords_bubble_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/passwords/passwords_bubble_cocoa.mm b/chrome/browser/ui/cocoa/passwords/passwords_bubble_cocoa.mm
index d5e520aa1f95ff367d1f59e4ec006f0767bb715e..44471a7f37598924a0fe58ca932f49c36fecf5dd 100644
--- a/chrome/browser/ui/cocoa/passwords/passwords_bubble_cocoa.mm
+++ b/chrome/browser/ui/cocoa/passwords/passwords_bubble_cocoa.mm
@@ -15,6 +15,7 @@
#include "chrome/browser/ui/passwords/manage_passwords_icon.h"
#include "chrome/browser/ui/passwords/passwords_model_delegate.h"
#include "content/public/browser/web_contents.h"
+#include "ui/base/material_design/material_design_controller.h"
typedef void (^Callback)(void);
@@ -123,6 +124,12 @@ void ManagePasswordsBubbleCocoa::Show(content::WebContents* webContents,
}
BrowserWindowController* bwc =
[BrowserWindowController browserWindowControllerForWindow:window];
+ if (ui::MaterialDesignController::IsSecondaryUiMaterial()) {
+ NSPoint anchor_point = [bwc bookmarkBubblePoint];
+ ShowViewsManagePasswordsBubbleOnCocoaBrowser(anchor_point, webContents,
+ user_action);
+ return;
+ }
bubble_ = new ManagePasswordsBubbleCocoa(
webContents, user_action ? ManagePasswordsBubbleModel::USER_ACTION
: ManagePasswordsBubbleModel::AUTOMATIC,

Powered by Google App Engine
This is Rietveld 408576698