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

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

Issue 2070733002: Update omnibox dropdown selection/hover background drawing for MD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scaled_radius
Patch Set: Created 4 years, 6 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 17b87eebd619e60717437c38ae29826d70b0988f..1b821ffe0215cd80b66766e0c0996dc51b8a8682 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -476,7 +476,8 @@ void LocationBarView::GetOmniboxPopupPositioningInfo(
*popup_width = parent()->width();
gfx::Rect location_bar_bounds(bounds());
- location_bar_bounds.Inset(GetHorizontalEdgeThickness(), 0);
+ if (!ui::MaterialDesignController::IsModeMaterial())
+ location_bar_bounds.Inset(GetHorizontalEdgeThickness(), 0);
*left_margin = location_bar_bounds.x();
*right_margin = *popup_width - location_bar_bounds.right();
}

Powered by Google App Engine
This is Rietveld 408576698