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

Side by Side Diff: chrome/browser/utility_process_host.cc

Issue 434077: Add regex escaping code to Mac sandbox implementation and re-enable the utility process on OS X. (Closed)
Patch Set: Sync to trunk Created 11 years 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
OLDNEW
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 Send(new UtilityMsg_ParseUpdateManifest(xml)); 49 Send(new UtilityMsg_ParseUpdateManifest(xml));
50 return true; 50 return true;
51 } 51 }
52 52
53 FilePath UtilityProcessHost::GetUtilityProcessCmd() { 53 FilePath UtilityProcessHost::GetUtilityProcessCmd() {
54 return GetChildPath(); 54 return GetChildPath();
55 } 55 }
56 56
57 bool UtilityProcessHost::StartProcess(const FilePath& exposed_dir) { 57 bool UtilityProcessHost::StartProcess(const FilePath& exposed_dir) {
58 #if defined(OS_POSIX) 58 #if defined(OS_LINUX)
59 // TODO(port): We should not reach here on Linux (crbug.com/22703). 59 // TODO(port): We should not reach here on Linux (crbug.com/22703).
60 // (crbug.com/23837) covers enabling this on Linux/OS X. 60 // (crbug.com/23837) covers enabling this on Linux.
61 NOTREACHED(); 61 NOTREACHED();
62 return false; 62 return false;
63 #endif 63 #endif
64 64
65 // Name must be set or metrics_service will crash in any test which 65 // Name must be set or metrics_service will crash in any test which
66 // launches a UtilityProcessHost. 66 // launches a UtilityProcessHost.
67 set_name(L"utility process"); 67 set_name(L"utility process");
68 68
69 if (!CreateChannel()) 69 if (!CreateChannel())
70 return false; 70 return false;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 IPC_MESSAGE_HANDLER(UtilityHostMsg_UnpackWebResource_Succeeded, 139 IPC_MESSAGE_HANDLER(UtilityHostMsg_UnpackWebResource_Succeeded,
140 Client::OnUnpackWebResourceSucceeded) 140 Client::OnUnpackWebResourceSucceeded)
141 IPC_MESSAGE_HANDLER(UtilityHostMsg_UnpackWebResource_Failed, 141 IPC_MESSAGE_HANDLER(UtilityHostMsg_UnpackWebResource_Failed,
142 Client::OnUnpackWebResourceFailed) 142 Client::OnUnpackWebResourceFailed)
143 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Succeeded, 143 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Succeeded,
144 Client::OnParseUpdateManifestSucceeded) 144 Client::OnParseUpdateManifestSucceeded)
145 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Failed, 145 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Failed,
146 Client::OnParseUpdateManifestFailed) 146 Client::OnParseUpdateManifestFailed)
147 IPC_END_MESSAGE_MAP_EX() 147 IPC_END_MESSAGE_MAP_EX()
148 } 148 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698