| Index: views/controls/native/native_view_host.cc
|
| diff --git a/views/controls/native/native_view_host.cc b/views/controls/native/native_view_host.cc
|
| index e6637a929585d4ae7e67cfbe28d71a2a693daca4..9cbeaf73adea45d4eb850b05c4be56c2adbebc82 100644
|
| --- a/views/controls/native/native_view_host.cc
|
| +++ b/views/controls/native/native_view_host.cc
|
| @@ -33,6 +33,10 @@ NativeViewHost::~NativeViewHost() {
|
| void NativeViewHost::Attach(gfx::NativeView native_view) {
|
| DCHECK(!native_view_);
|
| native_view_ = native_view;
|
| + // If set_focus_view() has not been invoked, this view is the one that should
|
| + // be seen as focused when the native view receives focus.
|
| + if (!focus_view_)
|
| + focus_view_ = this;
|
| native_wrapper_->NativeViewAttached();
|
| }
|
|
|
|
|