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

Side by Side Diff: chrome/common/sandbox_policy.cc

Issue 3945002: Move debug-related stuff from base to the base/debug directory and use the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/logging_chrome.cc ('k') | chrome/renderer/render_thread.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/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/debugger.h"
12 #include "base/debug/trace_event.h"
12 #include "base/file_util.h" 13 #include "base/file_util.h"
13 #include "base/logging.h" 14 #include "base/logging.h"
14 #include "base/path_service.h" 15 #include "base/path_service.h"
15 #include "base/process_util.h" 16 #include "base/process_util.h"
16 #include "base/stringprintf.h" 17 #include "base/stringprintf.h"
17 #include "base/string_number_conversions.h" 18 #include "base/string_number_conversions.h"
18 #include "base/string_util.h" 19 #include "base/string_util.h"
19 #include "base/trace_event.h"
20 #include "base/win/windows_version.h" 20 #include "base/win/windows_version.h"
21 #include "chrome/common/child_process_info.h" 21 #include "chrome/common/child_process_info.h"
22 #include "chrome/common/chrome_constants.h" 22 #include "chrome/common/chrome_constants.h"
23 #include "chrome/common/chrome_paths.h" 23 #include "chrome/common/chrome_paths.h"
24 #include "chrome/common/chrome_switches.h" 24 #include "chrome/common/chrome_switches.h"
25 #include "chrome/common/debug_flags.h" 25 #include "chrome/common/debug_flags.h"
26 #include "sandbox/src/sandbox.h" 26 #include "sandbox/src/sandbox.h"
27 27
28 static sandbox::BrokerServices* g_broker_services = NULL; 28 static sandbox::BrokerServices* g_broker_services = NULL;
29 29
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 if (sandbox::SBOX_ALL_OK != result) 572 if (sandbox::SBOX_ALL_OK != result)
573 return 0; 573 return 0;
574 574
575 ResumeThread(target.hThread); 575 ResumeThread(target.hThread);
576 CloseHandle(target.hThread); 576 CloseHandle(target.hThread);
577 process = target.hProcess; 577 process = target.hProcess;
578 578
579 // Help the process a little. It can't start the debugger by itself if 579 // Help the process a little. It can't start the debugger by itself if
580 // the process is in a sandbox. 580 // the process is in a sandbox.
581 if (child_needs_help) 581 if (child_needs_help)
582 DebugUtil::SpawnDebuggerOnProcess(target.dwProcessId); 582 base::debug::SpawnDebuggerOnProcess(target.dwProcessId);
583 583
584 return process; 584 return process;
585 } 585 }
586 586
587 } // namespace sandbox 587 } // namespace sandbox
OLDNEW
« no previous file with comments | « chrome/common/logging_chrome.cc ('k') | chrome/renderer/render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698