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

Unified Diff: net/disk_cache/blockfile/stress_cache.cc

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « net/disk_cache/backend_unittest.cc ('k') | net/http/http_network_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/stress_cache.cc
diff --git a/net/disk_cache/blockfile/stress_cache.cc b/net/disk_cache/blockfile/stress_cache.cc
index f28e8af9fd52c8d07ed0dae5f838997561bea855..d43cb74b3cc844a44b0d531b4dc1207a1d8577d3 100644
--- a/net/disk_cache/blockfile/stress_cache.cc
+++ b/net/disk_cache/blockfile/stress_cache.cc
@@ -27,7 +27,6 @@
#include "base/path_service.h"
#include "base/process/kill.h"
#include "base/process/launch.h"
-#include "base/process/process_handle.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
@@ -59,14 +58,14 @@ int RunSlave(int iteration) {
base::CommandLine cmdline(exe);
cmdline.AppendArg(base::IntToString(iteration));
- base::ProcessHandle handle;
- if (!base::LaunchProcess(cmdline, base::LaunchOptions(), &handle)) {
+ base::Process process = base::LaunchProcess(cmdline, base::LaunchOptions());
+ if (!process.IsValid()) {
printf("Unable to run test\n");
return kError;
}
int exit_code;
- if (!base::WaitForExitCode(handle, &exit_code)) {
+ if (!process.WaitForExit(&exit_code)) {
printf("Unable to get return code\n");
return kError;
}
« no previous file with comments | « net/disk_cache/backend_unittest.cc ('k') | net/http/http_network_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698