Index: ui/views/touchui/touch_selection_controller_impl.cc |
diff --git a/ui/views/touchui/touch_selection_controller_impl.cc b/ui/views/touchui/touch_selection_controller_impl.cc |
index 059709030799446c35d54c78b73330da7e71bab3..0846f6a0c50cf6b2a162e325248ffcb0c5dc74f1 100644 |
--- a/ui/views/touchui/touch_selection_controller_impl.cc |
+++ b/ui/views/touchui/touch_selection_controller_impl.cc |
@@ -446,7 +446,6 @@ TouchSelectionControllerImpl::TouchSelectionControllerImpl( |
dragging_handle_(nullptr) { |
selection_start_time_ = base::TimeTicks::Now(); |
aura::Window* client_window = client_view_->GetNativeView(); |
- client_window->AddObserver(this); |
client_widget_ = Widget::GetTopLevelWidgetForNativeView(client_window); |
if (client_widget_) |
client_widget_->AddObserver(this); |
@@ -460,7 +459,6 @@ TouchSelectionControllerImpl::~TouchSelectionControllerImpl() { |
aura::Env::GetInstance()->RemovePreTargetHandler(this); |
if (client_widget_) |
client_widget_->RemoveObserver(this); |
- client_view_->GetNativeView()->RemoveObserver(this); |
} |
void TouchSelectionControllerImpl::SelectionChanged() { |
@@ -643,12 +641,6 @@ void TouchSelectionControllerImpl::RunContextMenu() { |
client_view_->OpenContextMenu(anchor); |
} |
-void TouchSelectionControllerImpl::OnAncestorWindowTransformed( |
- aura::Window* window, |
- aura::Window* ancestor) { |
- client_view_->DestroyTouchSelection(); |
-} |
- |
void TouchSelectionControllerImpl::OnWidgetClosing(Widget* widget) { |
DCHECK_EQ(client_widget_, widget); |
client_widget_->RemoveObserver(this); |