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"
12 TouchSelectionMenuRunner
* g_touch_selection_menu_runner
= nullptr;
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;