| OLD | NEW |
| 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/browser/layout_test/layout_test_content_browser_client.h
" | 5 #include "content/shell/browser/layout_test/layout_test_content_browser_client.h
" |
| 6 | 6 |
| 7 #include "content/public/browser/browser_context.h" | 7 #include "content/public/browser/browser_context.h" |
| 8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
| 9 #include "content/public/browser/navigator_connect_context.h" | 9 #include "content/public/browser/navigator_connect_context.h" |
| 10 #include "content/public/browser/render_process_host.h" | 10 #include "content/public/browser/render_process_host.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 child_process_id); | 91 child_process_id); |
| 92 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 92 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 93 switches::kAlwaysUseComplexText)) { | 93 switches::kAlwaysUseComplexText)) { |
| 94 command_line->AppendSwitch(switches::kAlwaysUseComplexText); | 94 command_line->AppendSwitch(switches::kAlwaysUseComplexText); |
| 95 } | 95 } |
| 96 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 96 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 97 switches::kEnableFontAntialiasing)) { | 97 switches::kEnableFontAntialiasing)) { |
| 98 command_line->AppendSwitch(switches::kEnableFontAntialiasing); | 98 command_line->AppendSwitch(switches::kEnableFontAntialiasing); |
| 99 } | 99 } |
| 100 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 100 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 101 switches::kExposeInternalsForTesting)) { | |
| 102 command_line->AppendSwitch(switches::kExposeInternalsForTesting); | |
| 103 } | |
| 104 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | |
| 105 switches::kStableReleaseMode)) { | 101 switches::kStableReleaseMode)) { |
| 106 command_line->AppendSwitch(switches::kStableReleaseMode); | 102 command_line->AppendSwitch(switches::kStableReleaseMode); |
| 107 } | 103 } |
| 108 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 104 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 109 switches::kEnableLeakDetection)) { | 105 switches::kEnableLeakDetection)) { |
| 110 command_line->AppendSwitchASCII( | 106 command_line->AppendSwitchASCII( |
| 111 switches::kEnableLeakDetection, | 107 switches::kEnableLeakDetection, |
| 112 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 108 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
| 113 switches::kEnableLeakDetection)); | 109 switches::kEnableLeakDetection)); |
| 114 } | 110 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 125 return layout_test_notification_manager_.get(); | 121 return layout_test_notification_manager_.get(); |
| 126 } | 122 } |
| 127 | 123 |
| 128 void LayoutTestContentBrowserClient::GetAdditionalNavigatorConnectServices( | 124 void LayoutTestContentBrowserClient::GetAdditionalNavigatorConnectServices( |
| 129 const scoped_refptr<NavigatorConnectContext>& context) { | 125 const scoped_refptr<NavigatorConnectContext>& context) { |
| 130 context->AddFactory( | 126 context->AddFactory( |
| 131 make_scoped_ptr(new LayoutTestNavigatorConnectServiceFactory)); | 127 make_scoped_ptr(new LayoutTestNavigatorConnectServiceFactory)); |
| 132 } | 128 } |
| 133 | 129 |
| 134 } // namespace content | 130 } // namespace content |
| OLD | NEW |