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

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

Issue 7185023: Support Chromium-branded builds and cleanup reference build usage. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: . 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
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..c7f806aae408609296f4fbc3c05099fe98e6f1fb 100644
--- a/chrome/test/ui/ui_test.cc
+++ b/chrome/test/ui/ui_test.cc
@@ -174,8 +174,7 @@ ProxyLauncher* UITestBase::CreateProxyLauncher() {
}
ProxyLauncher::LaunchState UITestBase::DefaultLaunchState() {
- FilePath browser_executable = browser_directory_.Append(
- chrome::kBrowserProcessExecutablePath);
+ FilePath browser_executable = browser_directory_.Append(GetExecutablePath());
CommandLine command(browser_executable);
command.AppendArguments(launch_arguments_, false);
ProxyLauncher::LaunchState state =
@@ -406,6 +405,12 @@ FilePath UITestBase::GetDownloadDirectory() {
return download_directory;
}
+const FilePath::CharType* UITestBase::GetExecutablePath() {
+ if (launch_arguments_.HasSwitch(switches::kEnableChromiumBranding))
+ return chrome::kBrowserProcessExecutablePathChromium;
+ return chrome::kBrowserProcessExecutablePath;
+}
+
void UITestBase::CloseBrowserAsync(BrowserProxy* browser) const {
ASSERT_TRUE(automation()->Send(
new AutomationMsg_CloseBrowserRequestAsync(browser->handle())));

Powered by Google App Engine
This is Rietveld 408576698