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

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: tapted's comments 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
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..493aa9136e544afa84ea8178a96f910a6d4c898a
--- /dev/null
+++ b/chrome/browser/task_manager/task_manager_tester_nonmac.cc
@@ -0,0 +1,32 @@
+// 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
+
+
tapted 2016/05/23 21:04:26 nit: remove extra blank line
afakhry 2016/05/24 17:40:27 Done.

Powered by Google App Engine
This is Rietveld 408576698