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

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

Issue 1306173002: Set font size to 14 in location bar for material design (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: padding Created 5 years, 3 months 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 a42d45fbe5a2ff611a1b65f409afb3e2a072f97f..42ab167f9bf3587730d41095827fba578bd34ce1 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -202,7 +202,7 @@ 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 = browser_defaults::kOmniboxFontPixelSize;
+ const int desired_font_size = GetLayoutConstant(OMNIBOX_FONT_PIXEL_SIZE);
if (current_font_size != desired_font_size) {
font_list =
font_list.DeriveWithSizeDelta(desired_font_size - current_font_size);
« chrome/browser/ui/views/layout_constants.cc ('K') | « chrome/browser/ui/views/layout_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698