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

Side by Side Diff: content/shell/browser/layout_test/layout_test_content_browser_client.cc

Issue 1799923002: Make kExposeInternalsForTesting usable (again) for interactive content_shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix include path. Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/shell/browser/shell_content_browser_client.cc » ('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 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
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
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
OLDNEW
« no previous file with comments | « no previous file | content/shell/browser/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698