| Index: chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm
|
| diff --git a/chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm b/chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm
|
| index c6fe3eee02af325d14ef9a23e28905314d196696..6ec3fd959f57e9a5ceccfd1d3fc96f7f57effea0 100644
|
| --- a/chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm
|
| +++ b/chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm
|
| @@ -227,19 +227,21 @@ void SecurityStateBubbleDecoration::DrawInFrame(NSRect frame,
|
| [text drawInRect:text_rect];
|
|
|
| // Draw the divider.
|
| - NSBezierPath* line = [NSBezierPath bezierPath];
|
| - [line setLineWidth:line_width];
|
| - [line moveToPoint:NSMakePoint(NSMaxX(decoration_frame) - DividerPadding(),
|
| - NSMinY(decoration_frame))];
|
| - [line lineToPoint:NSMakePoint(NSMaxX(decoration_frame) - DividerPadding(),
|
| - NSMaxY(decoration_frame))];
|
| -
|
| - NSColor* divider_color = GetDividerColor(in_dark_mode);
|
| - CGFloat divider_alpha =
|
| - [divider_color alphaComponent] * GetAnimationProgress();
|
| - divider_color = [divider_color colorWithAlphaComponent:divider_alpha];
|
| - [divider_color set];
|
| - [line stroke];
|
| + if (state() == LocationBarDecorationState::NORMAL) {
|
| + NSBezierPath* line = [NSBezierPath bezierPath];
|
| + [line setLineWidth:line_width];
|
| + [line moveToPoint:NSMakePoint(NSMaxX(decoration_frame) - DividerPadding(),
|
| + NSMinY(decoration_frame))];
|
| + [line lineToPoint:NSMakePoint(NSMaxX(decoration_frame) - DividerPadding(),
|
| + NSMaxY(decoration_frame))];
|
| +
|
| + NSColor* divider_color = GetDividerColor(in_dark_mode);
|
| + CGFloat divider_alpha =
|
| + [divider_color alphaComponent] * GetAnimationProgress();
|
| + divider_color = [divider_color colorWithAlphaComponent:divider_alpha];
|
| + [divider_color set];
|
| + [line stroke];
|
| + }
|
| }
|
| }
|
|
|
|
|