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 |
103 #if defined(OS_POSIX) | 106 #if defined(OS_POSIX) |
104 // TODO(port): Sandbox this on Linux. Also, zygote this to work with | 107 // TODO(port): Sandbox this on Linux. Also, zygote this to work with |
105 // Linux updating. | 108 // Linux updating. |
106 bool has_cmd_prefix = browser_command_line.HasSwitch( | 109 bool has_cmd_prefix = browser_command_line.HasSwitch( |
107 switches::kUtilityCmdPrefix); | 110 switches::kUtilityCmdPrefix); |
108 if (has_cmd_prefix) { | 111 if (has_cmd_prefix) { |
109 // launch the utility child process with some prefix (usually "xterm -e gdb | 112 // launch the utility child process with some prefix (usually "xterm -e gdb |
110 // --args"). | 113 // --args"). |
111 cmd_line->PrependWrapper(browser_command_line.GetSwitchValue( | 114 cmd_line->PrependWrapper(browser_command_line.GetSwitchValue( |
112 switches::kUtilityCmdPrefix)); | 115 switches::kUtilityCmdPrefix)); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Succeeded, | 157 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Succeeded, |
155 Client::OnParseUpdateManifestSucceeded) | 158 Client::OnParseUpdateManifestSucceeded) |
156 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Failed, | 159 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Failed, |
157 Client::OnParseUpdateManifestFailed) | 160 Client::OnParseUpdateManifestFailed) |
158 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Succeeded, | 161 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Succeeded, |
159 Client::OnDecodeImageSucceeded) | 162 Client::OnDecodeImageSucceeded) |
160 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Failed, | 163 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Failed, |
161 Client::OnDecodeImageFailed) | 164 Client::OnDecodeImageFailed) |
162 IPC_END_MESSAGE_MAP_EX() | 165 IPC_END_MESSAGE_MAP_EX() |
163 } | 166 } |
OLD | NEW |