Building the New Task Manager UI (Phase 5)
This CL implements the first real observer of the new task manager -- the
NewTaskManagerTableModel that will adapt the new task manager to the requirements
of the TableView. It also implements the NewTaskManagerView.
To test the new task manager, you must run using the --enable-new-task-manager
switch.
[email protected]
BUG=471008, 471007
Review URL: https://codereview.chromium.org/1259703005
Cr-Commit-Position: refs/heads/master@{#343313}
diff --git a/chrome/browser/net/chrome_network_delegate.cc b/chrome/browser/net/chrome_network_delegate.cc
index b4ac0db1..e06f789 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -33,7 +33,7 @@
#include "chrome/browser/net/request_source_bandwidth_histograms.h"
#include "chrome/browser/net/safe_search_util.h"
#include "chrome/browser/profiles/profile_manager.h"
-#include "chrome/browser/task_manager/task_manager.h"
+#include "chrome/browser/task_management/task_manager_interface.h"
#include "chrome/common/pref_names.h"
#include "components/content_settings/core/browser/cookie_settings.h"
#include "components/domain_reliability/monitor.h"
@@ -483,8 +483,9 @@
#if defined(ENABLE_TASK_MANAGER)
// This is not completely accurate, but as a first approximation ignore
// requests that are served from the cache. See bug 330931 for more info.
- if (!request.was_cached())
- TaskManager::GetInstance()->model()->NotifyBytesRead(request, bytes_read);
+ if (!request.was_cached()) {
+ task_management::TaskManagerInterface::OnRawBytesRead(request, bytes_read);
+ }
#endif // defined(ENABLE_TASK_MANAGER)
}