summaryrefslogtreecommitdiffstats
path: root/chrome/worker/worker_uitest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/worker/worker_uitest.cc')
-rw-r--r--chrome/worker/worker_uitest.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/worker/worker_uitest.cc b/chrome/worker/worker_uitest.cc
index 6c01b66..c76333c 100644
--- a/chrome/worker/worker_uitest.cc
+++ b/chrome/worker/worker_uitest.cc
@@ -92,7 +92,9 @@ class WorkerTest : public UILayoutTest {
int cur_process_count;
for (int i = 0; i < 10; ++i) {
- cur_process_count = GetBrowserProcessCount();
+ cur_process_count = 0;
+ if (!GetBrowserProcessCount(&cur_process_count))
+ return false;
if (cur_process_count == number_of_processes)
return true;