Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / ui / touch_selection / touch_selection_menu_runner.cc
blobbf70874a4825b562f057414305eb6aaa7f517f4c
1 // Copyright 2015 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/touch_selection/touch_selection_menu_runner.h"
7 #include "base/logging.h"
9 namespace ui {
10 namespace {
12 TouchSelectionMenuRunner* g_touch_selection_menu_runner = nullptr;
14 } // namespace
16 TouchSelectionMenuRunner::~TouchSelectionMenuRunner() {
17 DCHECK_EQ(this, g_touch_selection_menu_runner);
18 g_touch_selection_menu_runner = nullptr;
21 TouchSelectionMenuRunner* TouchSelectionMenuRunner::GetInstance() {
22 return g_touch_selection_menu_runner;
25 TouchSelectionMenuRunner::TouchSelectionMenuRunner() {
26 DCHECK(!g_touch_selection_menu_runner);
27 g_touch_selection_menu_runner = this;
30 } // namespace ui