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

Side by Side Diff: content/shell/browser/shell_content_browser_client.cc

Issue 1394003004: Add flag to force complex text for tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/common/shell_switches.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 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 "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file.h" 9 #include "base/files/file.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 } 223 }
224 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 224 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
225 switches::kDumpLineBoxTrees)) { 225 switches::kDumpLineBoxTrees)) {
226 command_line->AppendSwitch(switches::kDumpLineBoxTrees); 226 command_line->AppendSwitch(switches::kDumpLineBoxTrees);
227 } 227 }
228 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 228 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
229 switches::kEnableFontAntialiasing)) { 229 switches::kEnableFontAntialiasing)) {
230 command_line->AppendSwitch(switches::kEnableFontAntialiasing); 230 command_line->AppendSwitch(switches::kEnableFontAntialiasing);
231 } 231 }
232 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 232 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
233 switches::kAlwaysUseComplexText)) {
234 command_line->AppendSwitch(switches::kAlwaysUseComplexText);
235 }
236 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
233 switches::kExposeInternalsForTesting)) { 237 switches::kExposeInternalsForTesting)) {
234 command_line->AppendSwitch(switches::kExposeInternalsForTesting); 238 command_line->AppendSwitch(switches::kExposeInternalsForTesting);
235 } 239 }
236 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 240 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
237 switches::kExposeIpcEcho)) { 241 switches::kExposeIpcEcho)) {
238 command_line->AppendSwitch(switches::kExposeIpcEcho); 242 command_line->AppendSwitch(switches::kExposeIpcEcho);
239 } 243 }
240 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 244 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
241 switches::kStableReleaseMode)) { 245 switches::kStableReleaseMode)) {
242 command_line->AppendSwitch(switches::kStableReleaseMode); 246 command_line->AppendSwitch(switches::kStableReleaseMode);
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 ShellBrowserContext* 417 ShellBrowserContext*
414 ShellContentBrowserClient::ShellBrowserContextForBrowserContext( 418 ShellContentBrowserClient::ShellBrowserContextForBrowserContext(
415 BrowserContext* content_browser_context) { 419 BrowserContext* content_browser_context) {
416 if (content_browser_context == browser_context()) 420 if (content_browser_context == browser_context())
417 return browser_context(); 421 return browser_context();
418 DCHECK_EQ(content_browser_context, off_the_record_browser_context()); 422 DCHECK_EQ(content_browser_context, off_the_record_browser_context());
419 return off_the_record_browser_context(); 423 return off_the_record_browser_context();
420 } 424 }
421 425
422 } // namespace content 426 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/shell/common/shell_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698