diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-06 18:50:51 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-06 18:50:51 +0000 |
commit | c83dd9152c88cc9cb2dcdc6c68da651516dc9715 (patch) | |
tree | 22cf90855386d9946633963f943066f309820f47 /chrome/test/automated_ui_tests | |
parent | ab9cd716eecd0153a111b19d3f60e4b1cc4e58ae (diff) | |
download | chromium_src-c83dd9152c88cc9cb2dcdc6c68da651516dc9715.zip chromium_src-c83dd9152c88cc9cb2dcdc6c68da651516dc9715.tar.gz chromium_src-c83dd9152c88cc9cb2dcdc6c68da651516dc9715.tar.bz2 |
Convert variables in chrome/common/env_vars.cc from wchar_t to char. Enable ChromeLoggingTest along the way.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1559016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43738 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automated_ui_tests')
-rw-r--r-- | chrome/test/automated_ui_tests/automated_ui_tests.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/test/automated_ui_tests/automated_ui_tests.cc b/chrome/test/automated_ui_tests/automated_ui_tests.cc index fed3dba..85992bd 100644 --- a/chrome/test/automated_ui_tests/automated_ui_tests.cc +++ b/chrome/test/automated_ui_tests/automated_ui_tests.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -7,13 +7,13 @@ #include <vector> #include "base/command_line.h" +#include "base/env_var.h" #include "base/file_util.h" #include "base/keyboard_codes.h" #include "base/logging.h" #include "base/path_service.h" #include "base/rand_util.h" #include "base/string_util.h" -#include "base/sys_info.h" #include "base/time.h" #include "chrome/app/chrome_dll_resource.h" #include "chrome/browser/browser_process.h" @@ -130,7 +130,8 @@ AutomatedUITest::AutomatedUITest() post_action_delay_ = StringToInt(str); } } - if (base::SysInfo::HasEnvVar(env_vars::kHeadless)) + scoped_ptr<base::EnvVarGetter> env(base::EnvVarGetter::Create()); + if (env->HasEnv(env_vars::kHeadless)) logging::SetLogReportHandler(SilentRuntimeReportHandler); } |