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

Side by Side Diff: chrome/nacl/nacl_broker_listener.cc

Issue 16867015: Revert r207951 - "Separate NaCl switches to their own file." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/nacl/DEPS ('k') | chrome/nacl/nacl_exe_win_64.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) 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 "chrome/nacl/nacl_broker_listener.h" 5 #include "chrome/nacl/nacl_broker_listener.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/message_loop/message_loop_proxy.h" 11 #include "base/message_loop/message_loop_proxy.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/process_util.h" 13 #include "base/process_util.h"
14 #include "chrome/common/chrome_switches.h" 14 #include "chrome/common/chrome_switches.h"
15 #include "chrome/common/nacl_cmd_line.h" 15 #include "chrome/common/nacl_cmd_line.h"
16 #include "chrome/common/nacl_debug_exception_handler_win.h" 16 #include "chrome/common/nacl_debug_exception_handler_win.h"
17 #include "chrome/common/nacl_messages.h" 17 #include "chrome/common/nacl_messages.h"
18 #include "components/nacl/common/nacl_switches.h"
19 #include "content/public/common/content_switches.h"
20 #include "content/public/common/sandbox_init.h" 18 #include "content/public/common/sandbox_init.h"
21 #include "ipc/ipc_channel.h" 19 #include "ipc/ipc_channel.h"
22 #include "ipc/ipc_switches.h" 20 #include "ipc/ipc_switches.h"
23 #include "sandbox/win/src/sandbox_policy.h" 21 #include "sandbox/win/src/sandbox_policy.h"
24 22
25 namespace { 23 namespace {
26 24
27 void SendReply(IPC::Channel* channel, int32 pid, bool result) { 25 void SendReply(IPC::Channel* channel, int32 pid, bool result) {
28 channel->Send(new NaClProcessMsg_DebugExceptionHandlerLaunched(pid, result)); 26 channel->Send(new NaClProcessMsg_DebugExceptionHandlerLaunched(pid, result));
29 } 27 }
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 const std::string& startup_info) { 120 const std::string& startup_info) {
123 NaClStartDebugExceptionHandlerThread( 121 NaClStartDebugExceptionHandlerThread(
124 process_handle, startup_info, 122 process_handle, startup_info,
125 base::MessageLoopProxy::current(), 123 base::MessageLoopProxy::current(),
126 base::Bind(SendReply, channel_.get(), pid)); 124 base::Bind(SendReply, channel_.get(), pid));
127 } 125 }
128 126
129 void NaClBrokerListener::OnStopBroker() { 127 void NaClBrokerListener::OnStopBroker() {
130 base::MessageLoop::current()->Quit(); 128 base::MessageLoop::current()->Quit();
131 } 129 }
OLDNEW
« no previous file with comments | « chrome/nacl/DEPS ('k') | chrome/nacl/nacl_exe_win_64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698