summaryrefslogtreecommitdiffstats
path: root/views/controls/native_control.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/native_control.cc')
-rw-r--r--views/controls/native_control.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/views/controls/native_control.cc b/views/controls/native_control.cc
index 2df961e..5fd8349 100644
--- a/views/controls/native_control.cc
+++ b/views/controls/native_control.cc
@@ -367,8 +367,7 @@ LRESULT CALLBACK NativeControl::NativeControlWndProc(HWND window, UINT message,
return 0;
} else if (message == WM_SETFOCUS) {
// Let the focus manager know that the focus changed.
- FocusManager* focus_manager =
- FocusManager::GetFocusManager(native_control->GetNativeControlHWND());
+ FocusManager* focus_manager = native_control->GetFocusManager();
if (focus_manager) {
focus_manager->SetFocusedView(native_control);
} else {