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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_win.cc

Issue 59513006: Fixes coding style: follow-up of http://crrev.com/59193005 . (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/omnibox/omnibox_view_win.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
index febdf1e31d04f1cbff393873d489915bf32f9a64..194788a6400806096639942b5f3dd20d1d3fa162 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
@@ -523,8 +523,10 @@ OmniboxViewWin::OmniboxViewWin(OmniboxEditController* controller,
(static_cast<float>(cap_height) * kXHeightRatio) + 0.5);
// Determine the y offset centering cap height.
const int location_height = location_bar_->GetInternalHeight(true);
- font_y_adjustment_ = std::max(0,
- int((location_height - cap_height) / 2 - tm.tmInternalLeading));
+ font_y_adjustment_ = std::max(
+ 0,
+ static_cast<int>((location_height - cap_height) / 2 -
+ tm.tmInternalLeading));
// Get the number of twips per pixel, which we need below to offset our text
// by the desired number of pixels.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698