| Index: ui/views/controls/native/native_view_host_win.cc
|
| diff --git a/ui/views/controls/native/native_view_host_win.cc b/ui/views/controls/native/native_view_host_win.cc
|
| index 72e8d42a7edf0e8d1d0fc9d26d43504e20e70289..4916752cfde93c7953976fcca7fc9b5b233c8ccf 100644
|
| --- a/ui/views/controls/native/native_view_host_win.cc
|
| +++ b/ui/views/controls/native/native_view_host_win.cc
|
| @@ -48,7 +48,6 @@ void NativeViewHostWin::NativeViewDetaching(bool destroyed) {
|
| if (!destroyed) {
|
| if (installed_clip_)
|
| UninstallClip();
|
| - ClearFocus();
|
| SetParent(host_->native_view(), ui::GetHiddenWindow());
|
| }
|
| installed_clip_ = false;
|
| @@ -148,20 +147,6 @@ gfx::NativeViewAccessible NativeViewHostWin::GetNativeViewAccessible() {
|
| }
|
| }
|
|
|
| -void NativeViewHostWin::ClearFocus() {
|
| - FocusManager* focus_manager = host_->GetFocusManager();
|
| - if (!focus_manager || !focus_manager->GetFocusedView())
|
| - return;
|
| -
|
| - Widget::Widgets widgets;
|
| - Widget::GetAllChildWidgets(host_->native_view(), &widgets);
|
| - for (Widget::Widgets::iterator i = widgets.begin(); i != widgets.end(); ++i) {
|
| - focus_manager->ViewRemoved((*i)->GetRootView());
|
| - if (!focus_manager->GetFocusedView())
|
| - return;
|
| - }
|
| -}
|
| -
|
| ////////////////////////////////////////////////////////////////////////////////
|
| // NativeViewHostWrapper, public:
|
|
|
|
|