Fix bug where a shelf or infobar would not be closed correctly when closing a tab. 

The issue was because ShelfVisibilityChangedImpl is called twice, once with a null current_tab for the closing tab (via TabClosingAt), and once on selection of the new tab (via TabSelectedAt) - the first call nulls the shelves without doing a Layout, the nulled shelves then don't show up in the second call, so Layout is never called.

http://crbug.com/2069

BUG=2069

Review URL: http://codereview.chromium.org/7155

git-svn-id: svn://svn.chromium.org/chrome/trunk@3528 0039d316-1c4b-4281-b951-d872f2087c98
4 files changed
tree: a32f1b279100de35d8a89b4be43f8af8370f35fc
  1. depot_tools/
  2. deps/
  3. src/