| Index: views/controls/native_control.cc
|
| diff --git a/views/controls/native_control.cc b/views/controls/native_control.cc
|
| index 83a67e53a0eb24418b26ab629b3198991e303514..7fc602c4ccdef41d6242c77742b518d4c1985717 100644
|
| --- a/views/controls/native_control.cc
|
| +++ b/views/controls/native_control.cc
|
| @@ -13,8 +13,8 @@
|
| #include "base/logging.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "ui/base/accessibility/accessibility_types.h"
|
| -#include "ui/base/keycodes/keyboard_codes.h"
|
| #include "ui/base/keycodes/keyboard_code_conversion_win.h"
|
| +#include "ui/base/keycodes/keyboard_codes.h"
|
| #include "ui/base/l10n/l10n_util_win.h"
|
| #include "ui/base/view_prop.h"
|
| #include "ui/base/win/hwnd_util.h"
|
| @@ -312,13 +312,10 @@ void NativeControl::SetVisible(bool f) {
|
| }
|
| }
|
|
|
| -void NativeControl::SetEnabled(bool enabled) {
|
| - if (enabled_ != enabled) {
|
| - View::SetEnabled(enabled);
|
| - if (GetNativeControlHWND()) {
|
| - EnableWindow(GetNativeControlHWND(), enabled_);
|
| - }
|
| - }
|
| +void NativeControl::OnEnabledChanged() {
|
| + View::OnEnabledChanged();
|
| + if (GetNativeControlHWND())
|
| + EnableWindow(GetNativeControlHWND(), View::IsEnabled());
|
| }
|
|
|
| void NativeControl::OnPaint(gfx::Canvas* canvas) {
|
|
|