Fix cookie searchbox bug.
[chromium-blink-merge.git] / ui / views / views_delegate.cc
blob20cb88f93594d7478590640f9f7c37f19b6ec34d
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/views/views_delegate.h"
7 #include "ui/views/touchui/touch_selection_controller_impl.h"
9 namespace views {
11 ViewsDelegate::ViewsDelegate()
12 : views_tsc_factory_(new views::ViewsTouchSelectionControllerFactory) {
13 ui::TouchSelectionControllerFactory::SetInstance(views_tsc_factory_.get());
16 ViewsDelegate::~ViewsDelegate() {
17 ui::TouchSelectionControllerFactory::SetInstance(NULL);
20 } // namespace views