diff options
author | stoyan@chromium.org <stoyan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-09 19:28:41 +0000 |
---|---|---|
committer | stoyan@chromium.org <stoyan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-09 19:28:41 +0000 |
commit | cd4fd156aba80ddffd3fffd8e2d8703247181fe0 (patch) | |
tree | 1f4b2dc5f58e5f534b033f71e0e48cc5549c6732 /chrome/browser/metrics | |
parent | a6309f8198825442d77f0fc9aa70c82ae5dd6d04 (diff) | |
download | chromium_src-cd4fd156aba80ddffd3fffd8e2d8703247181fe0.zip chromium_src-cd4fd156aba80ddffd3fffd8e2d8703247181fe0.tar.gz chromium_src-cd4fd156aba80ddffd3fffd8e2d8703247181fe0.tar.bz2 |
Fix the windows implementation of KillProcess and WaitForSingleProcess to not close the process handle that they do not own.
Review URL: http://codereview.chromium.org/24004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9400 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/metrics')
-rw-r--r-- | chrome/browser/metrics/metrics_service_uitest.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/metrics/metrics_service_uitest.cc b/chrome/browser/metrics/metrics_service_uitest.cc index db35f1c..e782128 100644 --- a/chrome/browser/metrics/metrics_service_uitest.cc +++ b/chrome/browser/metrics/metrics_service_uitest.cc @@ -91,7 +91,8 @@ TEST_F(MetricsServiceTest, CrashRenderers) { int process_id = 0; ASSERT_TRUE(tab->GetProcessID(&process_id)); ASSERT_NE(0, process_id); - base::KillProcess(process_id, 0xc0000005, true); // Fake Access Violation. + // Fake Access Violation. + base::KillProcessById(process_id, 0xc0000005, true); // Give the browser a chance to notice the crashed tab. Sleep(1000); |