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

Side by Side Diff: chrome/browser/chromeos/login/login_utils.cc

Issue 5844001: seccomp: remove build-time flags (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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 | Annotate | Revision Log
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/renderer_host/browser_render_process_host.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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/chromeos/login/login_utils.h" 5 #include "chrome/browser/chromeos/login/login_utils.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 // flag. We keep only some of the arguments of this process. 352 // flag. We keep only some of the arguments of this process.
353 static const char* kForwardSwitches[] = { 353 static const char* kForwardSwitches[] = {
354 switches::kEnableLogging, 354 switches::kEnableLogging,
355 switches::kUserDataDir, 355 switches::kUserDataDir,
356 switches::kScrollPixels, 356 switches::kScrollPixels,
357 switches::kEnableGView, 357 switches::kEnableGView,
358 switches::kNoFirstRun, 358 switches::kNoFirstRun,
359 switches::kLoginProfile, 359 switches::kLoginProfile,
360 switches::kEnableTabbedOptions, 360 switches::kEnableTabbedOptions,
361 switches::kCompressSystemFeedback, 361 switches::kCompressSystemFeedback,
362 #if defined(USE_SECCOMP_SANDBOX)
363 switches::kDisableSeccompSandbox, 362 switches::kDisableSeccompSandbox,
364 #endif
365 #if defined(HAVE_XINPUT2) 363 #if defined(HAVE_XINPUT2)
366 switches::kTouchDevices, 364 switches::kTouchDevices,
367 #endif 365 #endif
368 }; 366 };
369 const CommandLine& browser_command_line = 367 const CommandLine& browser_command_line =
370 *CommandLine::ForCurrentProcess(); 368 *CommandLine::ForCurrentProcess();
371 CommandLine command_line(browser_command_line.GetProgram()); 369 CommandLine command_line(browser_command_line.GetProgram());
372 command_line.CopySwitchesFrom(browser_command_line, 370 command_line.CopySwitchesFrom(browser_command_line,
373 kForwardSwitches, 371 kForwardSwitches,
374 arraysize(kForwardSwitches)); 372 arraysize(kForwardSwitches));
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 BrowserInit browser_init; 518 BrowserInit browser_init;
521 int return_code; 519 int return_code;
522 browser_init.LaunchBrowser(*CommandLine::ForCurrentProcess(), 520 browser_init.LaunchBrowser(*CommandLine::ForCurrentProcess(),
523 profile, 521 profile,
524 FilePath(), 522 FilePath(),
525 true, 523 true,
526 &return_code); 524 &return_code);
527 } 525 }
528 526
529 } // namespace chromeos 527 } // namespace chromeos
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698