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

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_view.cc

Issue 110893004: [SiteChip] Add UMA, finish wiring site chip experiment up to the omnibox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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/toolbar/toolbar_view.cc
diff --git a/chrome/browser/ui/views/toolbar/toolbar_view.cc b/chrome/browser/ui/views/toolbar/toolbar_view.cc
index fab63724f4da129047c96958f57cd008129b1419..69bd9db5e4ca45121441bd1c14fd2a295ca6b279 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
@@ -584,7 +584,7 @@ void ToolbarView::Layout() {
site_chip_width = std::max(0, std::min(site_chip_width,
(available_width - kStandardSpacing) / 2));
if (site_chip_view_->visible())
- available_width -= site_chip_width;
+ available_width -= site_chip_width + kStandardSpacing;
int location_height = location_bar_->GetPreferredSize().height();
int location_y = (height() - location_height + 1) / 2;

Powered by Google App Engine
This is Rietveld 408576698