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

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

Issue 896403002: Revert of 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/app/shell_main_delegate_mac.mm ('k') | content/shell/browser/shell_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/shell.cc
diff --git a/content/shell/browser/shell.cc b/content/shell/browser/shell.cc
index ccfe0ee6cac950fbfee0fc0a92c30d42bc5850e4..fa0183e2f03b4f9aa78f702ddd1e766f553a7c81 100644
--- a/content/shell/browser/shell.cc
+++ b/content/shell/browser/shell.cc
@@ -86,7 +86,7 @@
headless_(false) {
const base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();
- if (command_line.HasSwitch(switches::kRunLayoutTest))
+ if (command_line.HasSwitch(switches::kDumpRenderTree))
headless_ = true;
windows_.push_back(this);
@@ -127,7 +127,7 @@
shell->PlatformResizeSubViews();
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kRunLayoutTest)) {
+ switches::kDumpRenderTree)) {
web_contents->GetMutableRendererPrefs()->use_custom_colors = false;
web_contents->GetRenderViewHost()->SyncRendererPrefs();
}
@@ -218,7 +218,7 @@
bool* was_blocked) {
CreateShell(new_contents, AdjustWindowSize(initial_pos.size()));
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kRunLayoutTest))
+ switches::kDumpRenderTree))
NotifyDoneForwarder::CreateForWebContents(new_contents);
}
@@ -317,7 +317,7 @@
PlatformToggleFullscreenModeForTab(web_contents, enter_fullscreen);
#endif
if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kRunLayoutTest))
+ switches::kDumpRenderTree))
return;
if (is_fullscreen_ != enter_fullscreen) {
is_fullscreen_ = enter_fullscreen;
@@ -360,7 +360,7 @@
if (!dialog_manager_) {
const base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();
- dialog_manager_.reset(command_line.HasSwitch(switches::kRunLayoutTest)
+ dialog_manager_.reset(command_line.HasSwitch(switches::kDumpRenderTree)
? new LayoutTestJavaScriptDialogManager
: new ShellJavaScriptDialogManager);
}
@@ -373,12 +373,12 @@
int32 line_no,
const base::string16& source_id) {
return base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kRunLayoutTest);
+ switches::kDumpRenderTree);
}
void Shell::RendererUnresponsive(WebContents* source) {
if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kRunLayoutTest))
+ switches::kDumpRenderTree))
return;
WebKitTestController::Get()->RendererUnresponsive();
}
@@ -393,7 +393,7 @@
void Shell::WorkerCrashed(WebContents* source) {
if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kRunLayoutTest))
+ switches::kDumpRenderTree))
return;
WebKitTestController::Get()->WorkerCrashed();
}
« no previous file with comments | « content/shell/app/shell_main_delegate_mac.mm ('k') | content/shell/browser/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698