Index: mojo/views/native_widget_view_manager.cc |
diff --git a/mojo/views/native_widget_view_manager.cc b/mojo/views/native_widget_view_manager.cc |
index 259e3fbb3660dacc8ec0ac514f3ce1222a9ca1ba..5bbf7a5bbf0c2db09fc2eb3fea06ba8065b4b6ac 100644 |
--- a/mojo/views/native_widget_view_manager.cc |
+++ b/mojo/views/native_widget_view_manager.cc |
@@ -113,8 +113,7 @@ NativeWidgetViewManager::NativeWidgetViewManager( |
focus_client_.get()); |
window_tree_host_->window()->AddPreTargetHandler(focus_client_.get()); |
- aura::client::SetCaptureClient( |
- window_tree_host_->window(), |
+ capture_client_.reset( |
new aura::client::DefaultCaptureClient(window_tree_host_->window())); |
} |
@@ -128,8 +127,6 @@ void NativeWidgetViewManager::InitNativeWidget( |
views::Widget::InitParams params(in_params); |
params.parent = window_tree_host_->window(); |
NativeWidgetAura::InitNativeWidget(params); |
- capture_client_.reset( |
- new wm::ScopedCaptureClient(window_tree_host_->window())); |
} |
void NativeWidgetViewManager::CompositorContentsChanged( |