| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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. | |
| 4 | |
| 5 #include "chrome/browser/task_management/task_manager_tester.h" | |
| 6 | |
| 7 #include "chrome/browser/task_management/task_manager_interface.h" | |
| 8 | |
| 9 // TODO(tapted): Delete this file and rename CreateDefault() to Create() when | |
| 10 // there is no longer a legacy task manager. | |
| 11 | |
| 12 namespace task_management { | |
| 13 | |
| 14 std::unique_ptr<TaskManagerTester> TaskManagerTester::Create( | |
| 15 const base::Closure& callback) { | |
| 16 #if defined(OS_MACOSX) | |
| 17 // This Create() method doesn't attempt to create a tester for the legacy | |
| 18 // interface, so disabling the new task manager on Mac have no effect. | |
| 19 DCHECK(TaskManagerInterface::IsNewTaskManagerEnabled()); | |
| 20 #endif | |
| 21 return TaskManagerTester::CreateDefault(callback); | |
| 22 } | |
| 23 | |
| 24 void TaskManagerTester::MaybeRefreshLegacyInstance() { | |
| 25 #if defined(OS_MACOSX) | |
| 26 DCHECK(TaskManagerInterface::IsNewTaskManagerEnabled()); | |
| 27 #endif | |
| 28 } | |
| 29 | |
| 30 } // namespace task_management | |
| OLD | NEW |