Chromium Code Reviews| Index: chrome/browser/chromeos/status/status_area_view.cc |
| diff --git a/chrome/browser/chromeos/status/status_area_view.cc b/chrome/browser/chromeos/status/status_area_view.cc |
| index 55355b2023103f96673bf09a78112e4423b221f7..8a1d650d37d284ae422023e76f483b7cfd49d885 100644 |
| --- a/chrome/browser/chromeos/status/status_area_view.cc |
| +++ b/chrome/browser/chromeos/status/status_area_view.cc |
| @@ -13,6 +13,11 @@ |
| #include "ui/gfx/canvas.h" |
| #include "ui/views/border.h" |
| +#if defined(USE_AURA) |
| +#include "ui/aura_shell/shell.h" |
|
stevenjb
2011/12/05 20:08:59
We don't need this include any more.
Nikita (slow)
2011/12/06 08:26:19
Done.
|
| +#include "ui/views/widget/widget.h" |
| +#endif |
| + |
| // Number of pixels to separate each icon. |
| #if defined(TOUCH_UI) |
| const int kSeparation = 25; |
| @@ -92,6 +97,10 @@ void StatusAreaView::ChildPreferredSizeChanged(View* child) { |
| // BrowserView know to relayout, which will reset the bounds of this view. |
| Layout(); |
| PreferredSizeChanged(); |
| +#if defined(USE_AURA) |
| + if (GetWidget()) |
| + GetWidget()->SetSize(GetPreferredSize()); |
| +#endif |
| } |
| void StatusAreaView::MakeButtonsActive(bool active) { |