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

Side by Side Diff: content/shell/renderer/layout_test/layout_test_content_renderer_client.cc

Issue 2445323007: Remove AlwaysUseComplexText runtime flag (status=stable) (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/LayoutTestSupport.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/LayoutTestSupport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698