Chromium Code Reviews| Index: chrome/browser/task_manager/child_process_resource_provider.cc |
| diff --git a/chrome/browser/task_manager/child_process_resource_provider.cc b/chrome/browser/task_manager/child_process_resource_provider.cc |
| index eb0510c56d243f4b1fd87059b94d1d38f1dd25af..c111572e1f6c8890deaca6d045c958688ada8aaf 100644 |
| --- a/chrome/browser/task_manager/child_process_resource_provider.cc |
| +++ b/chrome/browser/task_manager/child_process_resource_provider.cc |
| @@ -188,15 +188,12 @@ base::string16 ChildProcessResource::GetLocalizedTitle() const { |
| // These types don't need display names or get them from elsewhere. |
| case content::PROCESS_TYPE_BROWSER: |
| case content::PROCESS_TYPE_RENDERER: |
| + case content::PROCESS_TYPE_WORKER_DEPRICATED: |
|
jochen (gone - plz use gerrit)
2014/07/24 09:25:09
DEPRICATED?
horo
2014/07/24 10:22:58
Deleted.
|
| case content::PROCESS_TYPE_ZYGOTE: |
| case content::PROCESS_TYPE_SANDBOX_HELPER: |
| case content::PROCESS_TYPE_MAX: |
| NOTREACHED(); |
| break; |
| - |
| - case content::PROCESS_TYPE_WORKER: |
| - NOTREACHED() << "Workers are not handled by this provider."; |
| - break; |
| case content::PROCESS_TYPE_UNKNOWN: |
| NOTREACHED() << "Need localized name for child process type."; |
| } |
| @@ -259,9 +256,6 @@ void ChildProcessResourceProvider::BrowserChildProcessHostConnected( |
| const content::ChildProcessData& data) { |
| DCHECK(updating_); |
| - // Workers are handled by WorkerResourceProvider. |
| - if (data.process_type == content::PROCESS_TYPE_WORKER) |
| - return; |
| if (resources_.count(data.handle)) { |
| // The case may happen that we have added a child_process_info as part of |
| // the iteration performed during StartUpdating() call but the notification |
| @@ -277,8 +271,6 @@ void ChildProcessResourceProvider:: |
| const content::ChildProcessData& data) { |
| DCHECK(updating_); |
| - if (data.process_type == content::PROCESS_TYPE_WORKER) |
| - return; |
| ChildProcessMap::iterator iter = resources_.find(data.handle); |
| if (iter == resources_.end()) { |
| // ChildProcessData disconnection notifications are asynchronous, so we |
| @@ -322,8 +314,6 @@ void ChildProcessResourceProvider::RetrieveChildProcessData() { |
| // Only add processes which are already started, since we need their handle. |
| if (iter.GetData().handle == base::kNullProcessHandle) |
| continue; |
| - if (iter.GetData().process_type == content::PROCESS_TYPE_WORKER) |
| - continue; |
| child_processes.push_back(iter.GetData()); |
| } |
| // Now notify the UI thread that we have retrieved information about child |