Index: chrome/test/ui/ui_test.cc |
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc |
index 283084871e33085de1266844aea76afa7cb3adbf..1d9030b0f8d84d88e9b134c1a99a11dbc29420e0 100644 |
--- a/chrome/test/ui/ui_test.cc |
+++ b/chrome/test/ui/ui_test.cc |
@@ -89,6 +89,7 @@ UITestBase::UITestBase() |
clear_profile_(true), |
include_testing_id_(true), |
enable_file_cookies_(true), |
+ enable_chrome_branding_(true), |
profile_type_(ProxyLauncher::DEFAULT_THEME) { |
PathService::Get(chrome::DIR_APP, &browser_directory_); |
PathService::Get(chrome::DIR_TEST_DATA, &test_data_directory_); |
@@ -104,6 +105,7 @@ UITestBase::UITestBase(MessageLoop::Type msg_loop_type) |
clear_profile_(true), |
include_testing_id_(true), |
enable_file_cookies_(true), |
+ enable_chrome_branding_(true), |
profile_type_(ProxyLauncher::DEFAULT_THEME) { |
PathService::Get(chrome::DIR_APP, &browser_directory_); |
PathService::Get(chrome::DIR_TEST_DATA, &test_data_directory_); |
@@ -174,8 +176,12 @@ ProxyLauncher* UITestBase::CreateProxyLauncher() { |
} |
ProxyLauncher::LaunchState UITestBase::DefaultLaunchState() { |
- FilePath browser_executable = browser_directory_.Append( |
- chrome::kBrowserProcessExecutablePath); |
+ if (enable_chrome_branding_) |
+ FilePath browser_executable = browser_directory_.Append( |
+ chrome::kBrowserProcessExecutablePath); |
+ else |
+ FilePath browser_executable = browser_directory_.Append( |
+ chrome::kBrowserProcessExecutablePathChromium); |
CommandLine command(browser_executable); |
command.AppendArguments(launch_arguments_, false); |
ProxyLauncher::LaunchState state = |