Index: webkit/tools/test_shell/test_shell_main.cc |
diff --git a/webkit/tools/test_shell/test_shell_main.cc b/webkit/tools/test_shell/test_shell_main.cc |
index bbc55f32df8f5004238d5d8266905a7adf0b62f7..a4c715ddd0da673659b1a5129343408a8dee2f97 100644 |
--- a/webkit/tools/test_shell/test_shell_main.cc |
+++ b/webkit/tools/test_shell/test_shell_main.cc |
@@ -94,7 +94,7 @@ int main(int argc, char* argv[]) { |
scoped_ptr<base::Environment> env(base::Environment::Create()); |
bool suppress_error_dialogs = ( |
- env->HasEnv("CHROME_HEADLESS") || |
+ env->HasVar("CHROME_HEADLESS") || |
parsed_command_line.HasSwitch(test_shell::kNoErrorDialogs) || |
parsed_command_line.HasSwitch(test_shell::kLayoutTests)); |
bool layout_test_mode = |