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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/task_manager/task_manager_tester_nonmac.cc
diff --git a/chrome/browser/task_manager/task_manager_tester_nonmac.cc b/chrome/browser/task_manager/task_manager_tester_nonmac.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7edd15cd9a4ff3506ccb5e71c91a821ca50cc12e
--- /dev/null
+++ b/chrome/browser/task_manager/task_manager_tester_nonmac.cc
@@ -0,0 +1,30 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/task_management/task_manager_tester.h"
+
+#include "chrome/browser/task_management/task_manager_interface.h"
+
+// TODO(tapted): Delete this file and rename CreateDefault() to Create() when
+// there is no longer a legacy task manager.
+
+namespace task_management {
+
+std::unique_ptr<TaskManagerTester> TaskManagerTester::Create(
+ const base::Closure& callback) {
+#if defined(OS_MACOSX)
+ // This Create() method doesn't attempt to create a tester for the legacy
+ // interface, so disabling the new task manager on Mac have no effect.
+ DCHECK(TaskManagerInterface::IsNewTaskManagerEnabled());
+#endif
+ return TaskManagerTester::CreateDefault(callback);
+}
+
+void TaskManagerTester::MaybeRefreshLegacyInstance() {
+#if defined(OS_MACOSX)
+ DCHECK(TaskManagerInterface::IsNewTaskManagerEnabled());
+#endif
+}
+
+} // namespace task_management
« 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