| Index: views/controls/native_control_win.cc
|
| diff --git a/views/controls/native_control_win.cc b/views/controls/native_control_win.cc
|
| index cd1ac0b19ad758be355247613c261256d95ce1e5..b64eedfd4b7b6e303c5236184da588afa90554a0 100644
|
| --- a/views/controls/native_control_win.cc
|
| +++ b/views/controls/native_control_win.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -58,12 +58,10 @@ bool NativeControlWin::ProcessMessage(UINT message,
|
| ////////////////////////////////////////////////////////////////////////////////
|
| // NativeControlWin, View overrides:
|
|
|
| -void NativeControlWin::SetEnabled(bool enabled) {
|
| - if (IsEnabled() != enabled) {
|
| - View::SetEnabled(enabled);
|
| - if (native_view())
|
| - EnableWindow(native_view(), IsEnabled());
|
| - }
|
| +void NativeControlWin::OnEnabledChanged() {
|
| + View::OnEnabledChanged();
|
| + if (native_view())
|
| + EnableWindow(native_view(), View::IsEnabled());
|
| }
|
|
|
| void NativeControlWin::ViewHierarchyChanged(bool is_add, View* parent,
|
|
|