OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/shell_content_browser_client.h" | 5 #include "content/shell/browser/shell_content_browser_client.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/base_switches.h" | 10 #include "base/base_switches.h" |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
227 void ShellContentBrowserClient::RegisterOutOfProcessMojoApplications( | 227 void ShellContentBrowserClient::RegisterOutOfProcessMojoApplications( |
228 OutOfProcessMojoApplicationMap* apps) { | 228 OutOfProcessMojoApplicationMap* apps) { |
229 apps->insert(std::make_pair(kTestMojoAppUrl, | 229 apps->insert(std::make_pair(kTestMojoAppUrl, |
230 base::UTF8ToUTF16("Test Mojo App"))); | 230 base::UTF8ToUTF16("Test Mojo App"))); |
231 } | 231 } |
232 | 232 |
233 void ShellContentBrowserClient::AppendExtraCommandLineSwitches( | 233 void ShellContentBrowserClient::AppendExtraCommandLineSwitches( |
234 base::CommandLine* command_line, | 234 base::CommandLine* command_line, |
235 int child_process_id) { | 235 int child_process_id) { |
236 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 236 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
237 switches::kDumpLineBoxTrees)) { | |
jochen (gone - plz use gerrit)
2016/03/04 12:33:36
ugh, this should have been handled in content/shel
Łukasz Anforowicz
2016/03/04 17:40:08
Acknowledged - I try to fix the remaining ones in
| |
238 command_line->AppendSwitch(switches::kDumpLineBoxTrees); | |
239 } | |
240 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | |
241 switches::kEnableFontAntialiasing)) { | 237 switches::kEnableFontAntialiasing)) { |
242 command_line->AppendSwitch(switches::kEnableFontAntialiasing); | 238 command_line->AppendSwitch(switches::kEnableFontAntialiasing); |
243 } | 239 } |
244 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 240 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
245 switches::kAlwaysUseComplexText)) { | 241 switches::kAlwaysUseComplexText)) { |
246 command_line->AppendSwitch(switches::kAlwaysUseComplexText); | 242 command_line->AppendSwitch(switches::kAlwaysUseComplexText); |
247 } | 243 } |
248 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 244 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
249 switches::kExposeInternalsForTesting)) { | 245 switches::kExposeInternalsForTesting)) { |
250 command_line->AppendSwitch(switches::kExposeInternalsForTesting); | 246 command_line->AppendSwitch(switches::kExposeInternalsForTesting); |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
421 ShellBrowserContext* | 417 ShellBrowserContext* |
422 ShellContentBrowserClient::ShellBrowserContextForBrowserContext( | 418 ShellContentBrowserClient::ShellBrowserContextForBrowserContext( |
423 BrowserContext* content_browser_context) { | 419 BrowserContext* content_browser_context) { |
424 if (content_browser_context == browser_context()) | 420 if (content_browser_context == browser_context()) |
425 return browser_context(); | 421 return browser_context(); |
426 DCHECK_EQ(content_browser_context, off_the_record_browser_context()); | 422 DCHECK_EQ(content_browser_context, off_the_record_browser_context()); |
427 return off_the_record_browser_context(); | 423 return off_the_record_browser_context(); |
428 } | 424 } |
429 | 425 |
430 } // namespace content | 426 } // namespace content |
OLD | NEW |