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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.cc

Issue 2555623002: Last round of cleaning up MD layout constants. (Closed)
Patch Set: 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/views/location_bar/location_bar_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index 76c548b99e18f71bdf00f69e84a39fc08fe50e9b..dc67d210cdfcb7deb1960723d038f7d6109fc423 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -220,10 +220,10 @@ void LocationBarView::Init() {
gfx::FontList font_list = ResourceBundle::GetSharedInstance().GetFontList(
ResourceBundle::BaseFont);
const int current_font_size = font_list.GetFontSize();
- const int desired_font_size = GetLayoutConstant(OMNIBOX_FONT_PIXEL_SIZE);
- if (current_font_size != desired_font_size) {
+ const int kDesiredFontSize = 14;
+ if (current_font_size != kDesiredFontSize) {
font_list =
- font_list.DeriveWithSizeDelta(desired_font_size - current_font_size);
+ font_list.DeriveWithSizeDelta(kDesiredFontSize - current_font_size);
}
// Shrink large fonts to make them fit.
// TODO(pkasting): Stretch the location bar instead in this case.

Powered by Google App Engine
This is Rietveld 408576698