Commit b40f80fa authored by jiangj's avatar jiangj Committed by Commit bot

Fix Cocoa setFrame:display: call type mismatch

-[NSView setFrame:display:] accepts BOOL as the second argument,
passing nil only worked by accident.

Review URL: https://codereview.chromium.org/569263002

Cr-Commit-Position: refs/heads/master@{#294862}
parent 352bb450
...@@ -52,7 +52,7 @@ anchoredAt:(NSPoint)anchorPoint ...@@ -52,7 +52,7 @@ anchoredAt:(NSPoint)anchorPoint
windowFrame.size.width = NSWidth(contentFrame) + kWindowPadding * 2; windowFrame.size.width = NSWidth(contentFrame) + kWindowPadding * 2;
windowFrame.size.height = NSHeight(contentFrame) + kWindowPadding * 2 windowFrame.size.height = NSHeight(contentFrame) + kWindowPadding * 2
+ info_bubble::kBubbleArrowHeight; + info_bubble::kBubbleArrowHeight;
[window setFrame:windowFrame display:nil]; [window setFrame:windowFrame display:NO];
[self showWindow:nil]; [self showWindow:nil];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment