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

Unified Diff: content/shell/browser/shell_content_browser_client.cc

Issue 899103002: Chromium-side patch to rename "--dump-render-tree" to "--run-layout-test". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « content/shell/browser/shell.cc ('k') | content/shell/browser/shell_web_contents_view_delegate_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/shell_content_browser_client.cc
diff --git a/content/shell/browser/shell_content_browser_client.cc b/content/shell/browser/shell_content_browser_client.cc
index fce64075ebc1a9ef72e88170f5e6670546198d67..64c36a40d856c85913aa62681440c08a79c2a05a 100644
--- a/content/shell/browser/shell_content_browser_client.cc
+++ b/content/shell/browser/shell_content_browser_client.cc
@@ -138,7 +138,7 @@ ShellContentBrowserClient::~ShellContentBrowserClient() {
BrowserMainParts* ShellContentBrowserClient::CreateBrowserMainParts(
const MainFunctionParams& parameters) {
shell_browser_main_parts_ = base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDumpRenderTree)
+ switches::kRunLayoutTest)
? new LayoutTestBrowserMainParts(parameters)
: new ShellBrowserMainParts(parameters);
return shell_browser_main_parts_;
@@ -202,8 +202,8 @@ void ShellContentBrowserClient::AppendExtraCommandLineSwitches(
base::CommandLine* command_line,
int child_process_id) {
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDumpRenderTree))
- command_line->AppendSwitch(switches::kDumpRenderTree);
+ switches::kRunLayoutTest))
+ command_line->AppendSwitch(switches::kRunLayoutTest);
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableFontAntialiasing))
command_line->AppendSwitch(switches::kEnableFontAntialiasing);
@@ -248,7 +248,7 @@ void ShellContentBrowserClient::OverrideWebkitPrefs(
const GURL& url,
WebPreferences* prefs) {
if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDumpRenderTree))
+ switches::kRunLayoutTest))
return;
WebKitTestController::Get()->OverrideWebkitPrefs(prefs);
}
@@ -256,7 +256,7 @@ void ShellContentBrowserClient::OverrideWebkitPrefs(
void ShellContentBrowserClient::ResourceDispatcherHostCreated() {
resource_dispatcher_host_delegate_.reset(
base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDumpRenderTree)
+ switches::kRunLayoutTest)
? new LayoutTestResourceDispatcherHostDelegate
: new ShellResourceDispatcherHostDelegate);
ResourceDispatcherHost::Get()->SetDelegate(
« no previous file with comments | « content/shell/browser/shell.cc ('k') | content/shell/browser/shell_web_contents_view_delegate_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698