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

Unified Diff: chrome/test/ui/ui_test.cc

Issue 7171005: Always support locating Chromium-branded builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable chrome switching in UIPerfTest and PageCyclerReferenceTest Created 9 years, 6 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
« no previous file with comments | « chrome/test/ui/ui_test.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 =
« no previous file with comments | « chrome/test/ui/ui_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698