Fix regression in views infobar button horizontal margins.
commit17d3f2af4646b696951b891e2811539e0f3bbda8
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 25 Nov 2013 23:56:39 +0000 (25 23:56 +0000)
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 25 Nov 2013 23:56:39 +0000 (25 23:56 +0000)
tree0794ae93291aa6b140cd8914b580153dd2ae365f
parent942ff65bb7d0b26a67db59bfb43184431ff9c2a6
Fix regression in views infobar button horizontal margins.

When collapsing subclasses in r236844, I wrongly assumed that GetInsets() in a
subclass constructor would return empty insets; it actually returns whatever the
base class set its insets to.

In the case of the infobar buttons, however, the override values we were
attempting to set on the vertical margins matches the default button margin
values.  So the easy fix is to simply not override any margins in InfoBarView.

BUG=323083
TEST=Visit a page in a different language, check that translate infobar buttons have correct margins
R=sky@chromium.org

Review URL: https://codereview.chromium.org/85403007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237183 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/ui/views/infobars/infobar_view.cc