| OLD | NEW |
| 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/common/sandbox_policy.h" | 5 #include "chrome/common/sandbox_policy.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "app/win_util.h" | 9 #include "app/win_util.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/debug_util.h" | 11 #include "base/debug_util.h" |
| 12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
| 15 #include "base/process_util.h" | 15 #include "base/process_util.h" |
| 16 #include "base/registry.h" | |
| 17 #include "base/string_util.h" | 16 #include "base/string_util.h" |
| 18 #include "base/win_util.h" | 17 #include "base/win_util.h" |
| 19 #include "chrome/common/child_process_info.h" | 18 #include "chrome/common/child_process_info.h" |
| 20 #include "chrome/common/chrome_constants.h" | 19 #include "chrome/common/chrome_constants.h" |
| 21 #include "chrome/common/chrome_paths.h" | 20 #include "chrome/common/chrome_paths.h" |
| 22 #include "chrome/common/chrome_switches.h" | 21 #include "chrome/common/chrome_switches.h" |
| 23 #include "chrome/common/debug_flags.h" | 22 #include "chrome/common/debug_flags.h" |
| 24 #include "sandbox/src/sandbox.h" | 23 #include "sandbox/src/sandbox.h" |
| 25 | 24 |
| 26 static sandbox::BrokerServices* g_broker_services = NULL; | 25 static sandbox::BrokerServices* g_broker_services = NULL; |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 | 493 |
| 495 // Help the process a little. It can't start the debugger by itself if | 494 // Help the process a little. It can't start the debugger by itself if |
| 496 // the process is in a sandbox. | 495 // the process is in a sandbox. |
| 497 if (child_needs_help) | 496 if (child_needs_help) |
| 498 DebugUtil::SpawnDebuggerOnProcess(target.dwProcessId); | 497 DebugUtil::SpawnDebuggerOnProcess(target.dwProcessId); |
| 499 | 498 |
| 500 return process; | 499 return process; |
| 501 } | 500 } |
| 502 | 501 |
| 503 } // namespace sandbox | 502 } // namespace sandbox |
| OLD | NEW |