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

Unified Diff: ui/views/cocoa/bridged_content_view.mm

Issue 1477253002: Use a single views::MenuConfig instance for each platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add menu_config_android Created 5 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
« no previous file with comments | « ui/views/BUILD.gn ('k') | ui/views/controls/combobox/combobox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/cocoa/bridged_content_view.mm
diff --git a/ui/views/cocoa/bridged_content_view.mm b/ui/views/cocoa/bridged_content_view.mm
index 80aa1c672d39894cbee3974a0e680b77a81f4893..2167561368c38f1b8a637d99c1b1daa022faae15 100644
--- a/ui/views/cocoa/bridged_content_view.mm
+++ b/ui/views/cocoa/bridged_content_view.mm
@@ -312,7 +312,7 @@ bool DispatchEventToMenu(views::Widget* widget, ui::KeyboardCode key_code) {
return;
if (drawMenuBackgroundForBlur_) {
- const CGFloat radius = views::MenuConfig::instance(nullptr).corner_radius;
+ const CGFloat radius = views::MenuConfig::instance().corner_radius;
[skia::SkColorToSRGBNSColor(0x01000000) set];
[[NSBezierPath bezierPathWithRoundedRect:[self bounds]
xRadius:radius
« no previous file with comments | « ui/views/BUILD.gn ('k') | ui/views/controls/combobox/combobox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698