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

Side by Side Diff: chrome/service/service_main.cc

Issue 10783004: Move Windows Sandbox, trybots version (don't commit me!) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to top of tree Created 8 years, 5 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/service/DEPS ('k') | chrome/test/DEPS » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/debug/debugger.h" 5 #include "base/debug/debugger.h"
6 #include "base/message_loop.h" 6 #include "base/message_loop.h"
7 #include "chrome/common/chrome_switches.h" 7 #include "chrome/common/chrome_switches.h"
8 #include "chrome/common/service_process_util.h" 8 #include "chrome/common/service_process_util.h"
9 #include "chrome/service/service_process.h" 9 #include "chrome/service/service_process.h"
10 #include "content/public/common/main_function_params.h" 10 #include "content/public/common/main_function_params.h"
11 #include "net/url_request/url_request.h" 11 #include "net/url_request/url_request.h"
12 12
13 #if defined(OS_WIN) 13 #if defined(OS_WIN)
14 #include "content/public/common/sandbox_init.h" 14 #include "content/public/common/sandbox_init.h"
15 #include "sandbox/src/sandbox_types.h" 15 #include "sandbox/win/src/sandbox_types.h"
16 #elif defined(OS_MACOSX) 16 #elif defined(OS_MACOSX)
17 #include "chrome/service/chrome_service_application_mac.h" 17 #include "chrome/service/chrome_service_application_mac.h"
18 #endif // defined(OS_WIN) 18 #endif // defined(OS_WIN)
19 19
20 // Mainline routine for running as the service process. 20 // Mainline routine for running as the service process.
21 int ServiceProcessMain(const content::MainFunctionParams& parameters) { 21 int ServiceProcessMain(const content::MainFunctionParams& parameters) {
22 // Chrome disallows cookies by default. All code paths that want to use 22 // Chrome disallows cookies by default. All code paths that want to use
23 // cookies should go through the browser process. 23 // cookies should go through the browser process.
24 net::URLRequest::SetDefaultCookiePolicyToBlock(); 24 net::URLRequest::SetDefaultCookiePolicyToBlock();
25 25
(...skipping 21 matching lines...) Expand all
47 if (service_process.Initialize(&main_message_loop, 47 if (service_process.Initialize(&main_message_loop,
48 parameters.command_line, 48 parameters.command_line,
49 state.release())) { 49 state.release())) {
50 MessageLoop::current()->Run(); 50 MessageLoop::current()->Run();
51 } else { 51 } else {
52 LOG(ERROR) << "Service process failed to initialize"; 52 LOG(ERROR) << "Service process failed to initialize";
53 } 53 }
54 service_process.Teardown(); 54 service_process.Teardown();
55 return 0; 55 return 0;
56 } 56 }
OLDNEW
« no previous file with comments | « chrome/service/DEPS ('k') | chrome/test/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698