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

Side by Side Diff: content/shell/renderer/test_runner/test_interfaces.cc

Issue 803813003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 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/test_runner/test_interfaces.h" 5 #include "content/shell/renderer/test_runner/test_interfaces.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 12 matching lines...) Expand all
23 23
24 namespace content { 24 namespace content {
25 25
26 TestInterfaces::TestInterfaces() 26 TestInterfaces::TestInterfaces()
27 : accessibility_controller_(new AccessibilityController()), 27 : accessibility_controller_(new AccessibilityController()),
28 event_sender_(new EventSender(this)), 28 event_sender_(new EventSender(this)),
29 text_input_controller_(new TextInputController()), 29 text_input_controller_(new TextInputController()),
30 test_runner_(new TestRunner(this)), 30 test_runner_(new TestRunner(this)),
31 delegate_(0) { 31 delegate_(0) {
32 blink::setLayoutTestMode(true); 32 blink::setLayoutTestMode(true);
33 if (CommandLine::ForCurrentProcess()->HasSwitch( 33 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
34 switches::kEnableFontAntialiasing)) 34 switches::kEnableFontAntialiasing))
35 blink::setFontAntialiasingEnabledForTest(true); 35 blink::setFontAntialiasingEnabledForTest(true);
36 36
37 // NOTE: please don't put feature specific enable flags here, 37 // NOTE: please don't put feature specific enable flags here,
38 // instead add them to RuntimeEnabledFeatures.in 38 // instead add them to RuntimeEnabledFeatures.in
39 39
40 ResetAll(); 40 ResetAll();
41 } 41 }
42 42
43 TestInterfaces::~TestInterfaces() { 43 TestInterfaces::~TestInterfaces() {
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 blink::WebThemeEngine* TestInterfaces::GetThemeEngine() { 183 blink::WebThemeEngine* TestInterfaces::GetThemeEngine() {
184 if (!test_runner_->UseMockTheme()) 184 if (!test_runner_->UseMockTheme())
185 return 0; 185 return 0;
186 if (!theme_engine_.get()) 186 if (!theme_engine_.get())
187 theme_engine_.reset(new MockWebThemeEngine()); 187 theme_engine_.reset(new MockWebThemeEngine());
188 return theme_engine_.get(); 188 return theme_engine_.get();
189 } 189 }
190 190
191 } // namespace content 191 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/shell_render_view_observer.cc ('k') | content/shell/tools/content_shell_crash_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698