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

Unified Diff: chrome/common/process_watcher.cc

Issue 4079: Porting refactoring changes:... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 3 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/common/process_watcher.cc
===================================================================
--- chrome/common/process_watcher.cc (revision 2544)
+++ chrome/common/process_watcher.cc (working copy)
@@ -6,8 +6,8 @@
#include "base/message_loop.h"
#include "base/object_watcher.h"
+#include "base/sys_info.h"
#include "chrome/app/result_codes.h"
-#include "chrome/common/env_util.h"
#include "chrome/common/env_vars.h"
// Maximum amount of time (in milliseconds) to wait for the process to exit.
@@ -48,9 +48,9 @@
private:
void KillProcess() {
- if (env_util::HasEnvironmentVariable(env_vars::kHeadless)) {
- // If running the distributed tests, give the renderer a little time to figure out
- // that the channel is shutdown and unwind.
+ if (base::SysInfo::HasEnvironmentVariable(env_vars::kHeadless)) {
+ // If running the distributed tests, give the renderer a little time
+ // to figure out that the channel is shutdown and unwind.
if (WaitForSingleObject(process_, kWaitInterval) == WAIT_OBJECT_0) {
OnObjectSignaled(process_);
return;

Powered by Google App Engine
This is Rietveld 408576698