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

Unified Diff: chrome/browser/task_manager/task_manager.cc

Issue 9959101: Exposing the child process unique ID through the task manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improved the comment on the new function in TaskManagerModel. Created 8 years, 9 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.cc
diff --git a/chrome/browser/task_manager/task_manager.cc b/chrome/browser/task_manager/task_manager.cc
index ad46354259ec8687c8665820f9f53bf89ccc715d..e44a54927b10d94931c6f7e2af199dd08cea4233 100644
--- a/chrome/browser/task_manager/task_manager.cc
+++ b/chrome/browser/task_manager/task_manager.cc
@@ -464,6 +464,11 @@ base::ProcessHandle TaskManagerModel::GetResourceProcessHandle(int index)
return resources_[index]->GetProcess();
}
+int TaskManagerModel::GetUniqueChildProcessId(int index) const {
+ CHECK_LT(index, ResourceCount());
+ return resources_[index]->GetUniqueChildProcessId();
+}
+
TaskManager::Resource::Type TaskManagerModel::GetResourceType(int index) const {
CHECK_LT(index, ResourceCount());
return resources_[index]->GetType();

Powered by Google App Engine
This is Rietveld 408576698