Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Side by Side Diff: chrome/browser/task_manager/task_manager_tester_nonmac.cc

Issue 1912773002: Remove the old task manager view (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/task_manager/task_manager.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/task_manager.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698