| Index: chrome/browser/task_manager/task_manager.cc
|
| diff --git a/chrome/browser/task_manager/task_manager.cc b/chrome/browser/task_manager/task_manager.cc
|
| index 879ecd5a518d416e028181a59b308dea009ed74f..d407dfb7f0c67b90fcc6e2ec6f29d6397a7de48e 100644
|
| --- a/chrome/browser/task_manager/task_manager.cc
|
| +++ b/chrome/browser/task_manager/task_manager.cc
|
| @@ -851,10 +851,13 @@ void TaskManagerModel::BytesRead(BytesReadParam param) {
|
| // tab that started a download was closed, or the request may have had
|
| // no originating resource associated with it in the first place.
|
| // We attribute orphaned/unaccounted activity to the Browser process.
|
| - int browser_pid = base::GetCurrentProcId();
|
| - CHECK(param.origin_child_id != browser_pid);
|
| - param.origin_child_id = browser_pid;
|
| - param.render_process_host_child_id = param.routing_id = -1;
|
| + // TODO(wez): Better results could be achieved by checking with the
|
| + // ResourceProviders in decreasing order of specialisation, with the
|
| + // Renderer and Browser resources last, so that fall-back is implicit.
|
| + CHECK(param.origin_child_id != (-1));
|
| + param.origin_child_id =
|
| + param.render_process_host_child_id =
|
| + param.routing_id = -1;
|
| BytesRead(param);
|
| return;
|
| }
|
|
|