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

Unified Diff: chrome/browser/ui/cocoa/location_bar/content_setting_decoration.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/location_bar/content_setting_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm b/chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm
index 9023fa56e19d727de9188a90d645104284b1f709..eb44c5ecda039030f07609e61e6260a00923396e 100644
--- a/chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm
@@ -303,7 +303,7 @@ bool ContentSettingDecoration::OnMousePressed(NSRect frame, NSPoint location) {
web_contents,
profile_);
- if (chrome::ToolkitViewsDialogsEnabled()) {
+ if (ui::MaterialDesignController::IsSecondaryUiMaterial()) {
gfx::Point origin = gfx::ScreenPointFromNSPoint(anchor);
chrome::ContentSettingBubbleViewsBridge::Show(
[web_contents->GetTopLevelNativeWindow() contentView],

Powered by Google App Engine
This is Rietveld 408576698