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

Unified Diff: chrome/browser/task_manager/task_manager_unittest.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_unittest.cc
diff --git a/chrome/browser/task_manager/task_manager_unittest.cc b/chrome/browser/task_manager/task_manager_unittest.cc
index 43a8ec6b41cfc1316d404fb597e00e8eebb37f8c..59384e42d9e418c04341fe90c2f184552cc74916 100644
--- a/chrome/browser/task_manager/task_manager_unittest.cc
+++ b/chrome/browser/task_manager/task_manager_unittest.cc
@@ -40,6 +40,11 @@ class TestResource : public TaskManager::Resource {
virtual base::ProcessHandle GetProcess() const {
return base::GetCurrentProcessHandle();
}
+ virtual int GetUniqueChildProcessId() const OVERRIDE {
+ // In reality the unique child process ID is not the actual process ID,
+ // but for testing purposes it shouldn't make difference.
+ return (int) base::GetCurrentProcId();
yoshiki 2012/04/04 19:29:09 You should use C++ style cast as same as in task_m
nasko 2012/04/04 19:31:24 Done.
+ }
virtual Type GetType() const { return RENDERER; }
virtual bool SupportNetworkUsage() const { return false; }
virtual void SetSupportNetworkUsage() { NOTREACHED(); }

Powered by Google App Engine
This is Rietveld 408576698