OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/utility_process_host.h" | 5 #include "chrome/browser/utility_process_host.h" |
6 | 6 |
7 #include "app/app_switches.h" | 7 #include "app/app_switches.h" |
8 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 cmd_line->AppendSwitch(switches::kChromeFrame); | 93 cmd_line->AppendSwitch(switches::kChromeFrame); |
94 | 94 |
95 if (browser_command_line.HasSwitch(switches::kEnableApps)) | 95 if (browser_command_line.HasSwitch(switches::kEnableApps)) |
96 cmd_line->AppendSwitch(switches::kEnableApps); | 96 cmd_line->AppendSwitch(switches::kEnableApps); |
97 | 97 |
98 if (browser_command_line.HasSwitch( | 98 if (browser_command_line.HasSwitch( |
99 switches::kEnableExperimentalExtensionApis)) { | 99 switches::kEnableExperimentalExtensionApis)) { |
100 cmd_line->AppendSwitch(switches::kEnableExperimentalExtensionApis); | 100 cmd_line->AppendSwitch(switches::kEnableExperimentalExtensionApis); |
101 } | 101 } |
102 | 102 |
103 if (browser_command_line.HasSwitch(switches::kIssue35198ExtraLogging)) | |
104 cmd_line->AppendSwitch(switches::kIssue35198ExtraLogging); | |
105 | |
106 #if defined(OS_POSIX) | 103 #if defined(OS_POSIX) |
107 // TODO(port): Sandbox this on Linux. Also, zygote this to work with | 104 // TODO(port): Sandbox this on Linux. Also, zygote this to work with |
108 // Linux updating. | 105 // Linux updating. |
109 bool has_cmd_prefix = browser_command_line.HasSwitch( | 106 bool has_cmd_prefix = browser_command_line.HasSwitch( |
110 switches::kUtilityCmdPrefix); | 107 switches::kUtilityCmdPrefix); |
111 if (has_cmd_prefix) { | 108 if (has_cmd_prefix) { |
112 // launch the utility child process with some prefix (usually "xterm -e gdb | 109 // launch the utility child process with some prefix (usually "xterm -e gdb |
113 // --args"). | 110 // --args"). |
114 cmd_line->PrependWrapper(browser_command_line.GetSwitchValue( | 111 cmd_line->PrependWrapper(browser_command_line.GetSwitchValue( |
115 switches::kUtilityCmdPrefix)); | 112 switches::kUtilityCmdPrefix)); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Succeeded, | 154 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Succeeded, |
158 Client::OnParseUpdateManifestSucceeded) | 155 Client::OnParseUpdateManifestSucceeded) |
159 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Failed, | 156 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Failed, |
160 Client::OnParseUpdateManifestFailed) | 157 Client::OnParseUpdateManifestFailed) |
161 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Succeeded, | 158 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Succeeded, |
162 Client::OnDecodeImageSucceeded) | 159 Client::OnDecodeImageSucceeded) |
163 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Failed, | 160 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Failed, |
164 Client::OnDecodeImageFailed) | 161 Client::OnDecodeImageFailed) |
165 IPC_END_MESSAGE_MAP_EX() | 162 IPC_END_MESSAGE_MAP_EX() |
166 } | 163 } |
OLD | NEW |