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

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

Issue 1829353002: Fix padding in location bar bubbles to match specs on bug. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hide_background_later
Patch Set: Add vector icon change from earlier Cl Created 4 years, 9 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/selected_keyword_view.cc
diff --git a/chrome/browser/ui/views/location_bar/selected_keyword_view.cc b/chrome/browser/ui/views/location_bar/selected_keyword_view.cc
index a5a157ce42b837013393c450664c06ee982e9a54..d8b0081b5cb70aa52ccc2be3ec5c5f499462fe48 100644
--- a/chrome/browser/ui/views/location_bar/selected_keyword_view.cc
+++ b/chrome/browser/ui/views/location_bar/selected_keyword_view.cc
@@ -113,14 +113,3 @@ void SelectedKeywordView::SetKeyword(const base::string16& keyword) {
const char* SelectedKeywordView::GetClassName() const {
return "SelectedKeywordView";
}
-
-int SelectedKeywordView::GetImageAndPaddingWidth() const {
- int width = IconLabelBubbleView::GetImageAndPaddingWidth();
- // Squeeze the icon and label closer to account for intrinsic padding in the
- // icon.
- if (ui::MaterialDesignController::IsModeMaterial())
- width -= 3;
-
- DCHECK_GE(width, 0);
- return width;
-}

Powered by Google App Engine
This is Rietveld 408576698