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

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

Issue 2961423002: [TaskManager] Allow a Task to mutate its PID after creation (Closed)
Patch Set: Rework comment. Created 3 years, 5 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/providers/task_provider.cc
diff --git a/chrome/browser/task_manager/providers/task_provider.cc b/chrome/browser/task_manager/providers/task_provider.cc
index 9f309aa5a599f31e5618b83a51c2e19b004ec39b..491cee42c3847ab68a66e48d1a4934bc1eb01ff1 100644
--- a/chrome/browser/task_manager/providers/task_provider.cc
+++ b/chrome/browser/task_manager/providers/task_provider.cc
@@ -41,4 +41,13 @@ void TaskProvider::NotifyObserverTaskUnresponsive(Task* task) const {
observer_->TaskUnresponsive(task);
}
+void TaskProvider::UpdateTaskProcessInfoAndNotifyObserver(
+ Task* existing_task,
+ base::ProcessHandle new_process_handle,
+ base::ProcessId new_process_id) const {
+ DCHECK(observer_);
+ existing_task->UpdateProcessInfo(new_process_handle, new_process_id,
+ observer_);
+}
+
} // namespace task_manager

Powered by Google App Engine
This is Rietveld 408576698