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

Side by Side Diff: chrome/browser/service/service_process_control_mac.mm

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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/browser/service/service_process_control.cc ('k') | chrome/browser/shell_integration.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/service/service_process_control.h" 5 #include "chrome/browser/service/service_process_control.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/mac/scoped_cftyperef.h" 9 #include "base/mac/scoped_cftyperef.h"
10 #include "chrome/common/service_process_util_posix.h" 10 #include "chrome/common/service_process_util_posix.h"
11 #include "content/public/browser/browser_thread.h" 11 #include "content/public/browser/browser_thread.h"
12 #include "third_party/GTM/Foundation/GTMServiceManagement.h" 12 #include "third_party/GTM/Foundation/GTMServiceManagement.h"
13 13
14 using content::BrowserThread;
15
14 void ServiceProcessControl::Launcher::DoRun() { 16 void ServiceProcessControl::Launcher::DoRun() {
15 base::mac::ScopedCFTypeRef<CFDictionaryRef> launchd_plist( 17 base::mac::ScopedCFTypeRef<CFDictionaryRef> launchd_plist(
16 CreateServiceProcessLaunchdPlist(cmd_line_.get(), false)); 18 CreateServiceProcessLaunchdPlist(cmd_line_.get(), false));
17 CFErrorRef error = NULL; 19 CFErrorRef error = NULL;
18 if (!GTMSMJobSubmit(launchd_plist, &error)) { 20 if (!GTMSMJobSubmit(launchd_plist, &error)) {
19 LOG(ERROR) << error; 21 LOG(ERROR) << error;
20 CFRelease(error); 22 CFRelease(error);
21 } else { 23 } else {
22 launched_ = true; 24 launched_ = true;
23 } 25 }
24 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, 26 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
25 base::Bind(&Launcher::Notify, this)); 27 base::Bind(&Launcher::Notify, this));
26 } 28 }
OLDNEW
« no previous file with comments | « chrome/browser/service/service_process_control.cc ('k') | chrome/browser/shell_integration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698