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

Unified Diff: chrome/browser/task_manager/task_manager_notification_resource_provider.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: Fix for proper casting and comment fixup. 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_notification_resource_provider.cc
diff --git a/chrome/browser/task_manager/task_manager_notification_resource_provider.cc b/chrome/browser/task_manager/task_manager_notification_resource_provider.cc
index fb0de12793a3078ec238e807a1eb77997dfd00d2..fc9729a2d38cf1dab1a91e3dfe309f9136a0bea2 100644
--- a/chrome/browser/task_manager/task_manager_notification_resource_provider.cc
+++ b/chrome/browser/task_manager/task_manager_notification_resource_provider.cc
@@ -38,6 +38,8 @@ TaskManagerNotificationResource::TaskManagerNotificationResource(
}
process_handle_ =
balloon_host_->web_contents()->GetRenderProcessHost()->GetHandle();
+ unique_process_id_ =
+ balloon_host_->web_contents()->GetRenderProcessHost()->GetID();
pid_ = base::GetProcId(process_handle_);
title_ = l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_NOTIFICATION_PREFIX,
balloon_host_->GetSource());
@@ -62,6 +64,10 @@ base::ProcessHandle TaskManagerNotificationResource::GetProcess() const {
return process_handle_;
}
+int TaskManagerNotificationResource::GetUniqueChildProcessId() const {
+ return unique_process_id_;
+}
+
TaskManager::Resource::Type TaskManagerNotificationResource::GetType() const {
return NOTIFICATION;
}
« no previous file with comments | « chrome/browser/task_manager/task_manager.cc ('k') | chrome/browser/task_manager/task_manager_resource_providers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698