| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/shell/renderer/layout_test/layout_test_content_renderer_client
.h" | 5 #include "content/shell/renderer/layout_test/layout_test_content_renderer_client
.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/debug/debugger.h" | 9 #include "base/debug/debugger.h" |
| 10 #include "components/test_runner/mock_credential_manager_client.h" | 10 #include "components/test_runner/mock_credential_manager_client.h" |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 std::string flags("--expose-gc"); | 285 std::string flags("--expose-gc"); |
| 286 v8::V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.size())); | 286 v8::V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.size())); |
| 287 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( | 287 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 288 switches::kStableReleaseMode)) { | 288 switches::kStableReleaseMode)) { |
| 289 blink::WebRuntimeFeatures::enableTestOnlyFeatures(true); | 289 blink::WebRuntimeFeatures::enableTestOnlyFeatures(true); |
| 290 } | 290 } |
| 291 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 291 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 292 switches::kEnableFontAntialiasing)) { | 292 switches::kEnableFontAntialiasing)) { |
| 293 blink::setFontAntialiasingEnabledForTest(true); | 293 blink::setFontAntialiasingEnabledForTest(true); |
| 294 } | 294 } |
| 295 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | |
| 296 switches::kAlwaysUseComplexText)) { | |
| 297 blink::setAlwaysUseComplexTextForTest(true); | |
| 298 } | |
| 299 } | 295 } |
| 300 | 296 |
| 301 } // namespace content | 297 } // namespace content |
| OLD | NEW |