Index: chrome/browser/chromeos/status/input_method_menu_button.cc |
=================================================================== |
--- chrome/browser/chromeos/status/input_method_menu_button.cc (revision 63751) |
+++ chrome/browser/chromeos/status/input_method_menu_button.cc (working copy) |
@@ -57,6 +57,14 @@ |
//////////////////////////////////////////////////////////////////////////////// |
// views::View implementation: |
+gfx::Size InputMethodMenuButton::GetPreferredSize() { |
+ // If not enabled, then hide this button. |
+ if (!IsEnabled()) { |
+ return gfx::Size(0, 0); |
+ } |
+ return StatusAreaButton::GetPreferredSize(); |
+} |
+ |
void InputMethodMenuButton::OnLocaleChanged() { |
input_method::OnLocaleChanged(); |
const InputMethodDescriptor& input_method = |