Index: chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm |
diff --git a/chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm b/chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm |
index 36a6f0f39f22f0d5586fd7df7ac8e149284e5c85..dbc6c5b50c3c3088b47edb3d1abc3fc91202f017 100644 |
--- a/chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm |
+++ b/chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm |
@@ -24,12 +24,8 @@ CGFloat BubblePadding() { |
return ui::MaterialDesignController::IsModeMaterial() ? 8.0 : 3.0; |
} |
-// Additional padding between the divider between the omnibox text and the |
-// divider. The desired value is 8px. We get 3px by subtracting the existing |
-// padding in location_bar_view from 8px. |
-CGFloat DividerPadding() { |
- return ui::MaterialDesignController::IsModeMaterial() ? 2.0 : 0.0; |
-} |
+// Additional padding between the divider and the label. |
+const CGFloat kDividerPadding = 2.0; |
// Padding between the icon and label. |
CGFloat kIconLabelPadding = 4.0; |
@@ -48,6 +44,10 @@ BubbleDecoration::BubbleDecoration() : retina_baseline_offset_(0) { |
BubbleDecoration::~BubbleDecoration() { |
} |
+CGFloat BubbleDecoration::DividerPadding() const { |
+ return ui::MaterialDesignController::IsModeMaterial() ? kDividerPadding : 0.0; |
+} |
+ |
CGFloat BubbleDecoration::GetWidthForImageAndLabel(NSImage* image, |
NSString* label) { |
if (!image && !label) |