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

Side by Side Diff: chrome/common/service_process_util_mac.mm

Issue 6612040: Move ChildProcessHost and ChildProcessInfo to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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/common/service_process_util.cc ('k') | chrome/service/service_child_process_host.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/common/service_process_util_posix.h" 5 #include "chrome/common/service_process_util_posix.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 #include <launch.h> 8 #include <launch.h>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/mac/foundation_util.h" 12 #include "base/mac/foundation_util.h"
13 #include "base/mac/mac_util.h" 13 #include "base/mac/mac_util.h"
14 #include "base/mac/scoped_nsautorelease_pool.h" 14 #include "base/mac/scoped_nsautorelease_pool.h"
15 #include "base/path_service.h" 15 #include "base/path_service.h"
16 #include "base/scoped_nsobject.h" 16 #include "base/scoped_nsobject.h"
17 #include "base/string_util.h" 17 #include "base/string_util.h"
18 #include "base/sys_string_conversions.h" 18 #include "base/sys_string_conversions.h"
19 #include "base/threading/thread_restrictions.h" 19 #include "base/threading/thread_restrictions.h"
20 #include "base/version.h" 20 #include "base/version.h"
21 #include "chrome/common/child_process_host.h"
22 #include "chrome/common/chrome_paths.h" 21 #include "chrome/common/chrome_paths.h"
23 #include "chrome/common/chrome_switches.h" 22 #include "chrome/common/chrome_switches.h"
24 #include "chrome/common/chrome_version_info.h" 23 #include "chrome/common/chrome_version_info.h"
24 #include "content/common/child_process_host.h"
25 #include "third_party/GTM/Foundation/GTMServiceManagement.h" 25 #include "third_party/GTM/Foundation/GTMServiceManagement.h"
26 26
27 namespace { 27 namespace {
28 28
29 NSString* GetServiceProcessLaunchDFileName() { 29 NSString* GetServiceProcessLaunchDFileName() {
30 NSString *bundle_id = [base::mac::MainAppBundle() bundleIdentifier]; 30 NSString *bundle_id = [base::mac::MainAppBundle() bundleIdentifier];
31 NSString *label = [bundle_id stringByAppendingPathExtension:@"plist"]; 31 NSString *label = [bundle_id stringByAppendingPathExtension:@"plist"];
32 return label; 32 return label;
33 } 33 }
34 34
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 295
296 base::mac::ScopedNSAutoreleasePool pool; 296 base::mac::ScopedNSAutoreleasePool pool;
297 NSURL* plist_url = GetUserAgentPath(); 297 NSURL* plist_url = GetUserAgentPath();
298 SInt32 error = 0; 298 SInt32 error = 0;
299 if (!CFURLDestroyResource(reinterpret_cast<CFURLRef>(plist_url), &error)) { 299 if (!CFURLDestroyResource(reinterpret_cast<CFURLRef>(plist_url), &error)) {
300 LOG(ERROR) << "RemoveFromAutoRun: " << error; 300 LOG(ERROR) << "RemoveFromAutoRun: " << error;
301 return false; 301 return false;
302 } 302 }
303 return true; 303 return true;
304 } 304 }
OLDNEW
« no previous file with comments | « chrome/common/service_process_util.cc ('k') | chrome/service/service_child_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698