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

Issue 9837031: Implement DaemonController Start(), Stop() and GetStatus() for Mac. (Closed)

Created:
8 years, 9 months ago by Lambros
Modified:
8 years, 8 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Implement DaemonController Start(), Stop() and GetStatus() for Mac. BUG=None TEST=Start/stop the service from the Web UI Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=129676

Patch Set 1 #

Total comments: 17

Patch Set 2 : Fixes from review #

Patch Set 3 : Rebase onto new DaemonController API, and implement load/save config. #

Patch Set 4 : Change service string #

Total comments: 12

Patch Set 5 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -5 lines) Patch
M remoting/host/plugin/daemon_controller_mac.cc View 1 2 3 4 3 chunks +205 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Lambros
sergeyu: Please have a look at my use of threading. garykac: FYI. Please tell me ...
8 years, 9 months ago (2012-03-23 02:06:11 UTC) #1
Jamie
I'm about ready to sign off on this, once my comments have been addressed, but ...
8 years, 9 months ago (2012-03-23 03:24:05 UTC) #2
garykac
http://codereview.chromium.org/9837031/diff/1/remoting/host/plugin/daemon_controller_mac.cc File remoting/host/plugin/daemon_controller_mac.cc (right): http://codereview.chromium.org/9837031/diff/1/remoting/host/plugin/daemon_controller_mac.cc#newcode35 remoting/host/plugin/daemon_controller_mac.cc:35: const char kStartStopTool[] = "/Library/PrivilegedHelperTools/me2me.sh"; Since this is a ...
8 years, 9 months ago (2012-03-23 16:28:28 UTC) #3
Sergey Ulanov
http://codereview.chromium.org/9837031/diff/1/remoting/host/plugin/daemon_controller_mac.cc File remoting/host/plugin/daemon_controller_mac.cc (right): http://codereview.chromium.org/9837031/diff/1/remoting/host/plugin/daemon_controller_mac.cc#newcode57 remoting/host/plugin/daemon_controller_mac.cc:57: base::Thread root_thread_; On 2012/03/23 03:24:05, Jamie wrote: > I ...
8 years, 9 months ago (2012-03-23 17:56:48 UTC) #4
Lambros
http://codereview.chromium.org/9837031/diff/1/remoting/host/plugin/daemon_controller_mac.cc File remoting/host/plugin/daemon_controller_mac.cc (right): http://codereview.chromium.org/9837031/diff/1/remoting/host/plugin/daemon_controller_mac.cc#newcode26 remoting/host/plugin/daemon_controller_mac.cc:26: #define kServiceName "com.google.chrome_remote_desktop" On 2012/03/23 03:24:05, Jamie wrote: > ...
8 years, 9 months ago (2012-03-26 19:15:26 UTC) #5
Jamie
lgtm
8 years, 9 months ago (2012-03-26 19:55:38 UTC) #6
Lambros
PTAL. This CL is now dependent on http://codereview.chromium.org/9837098/
8 years, 8 months ago (2012-03-29 01:41:25 UTC) #7
Jamie
lgtm, but it might be worth running this by Dave or someone with more Mac ...
8 years, 8 months ago (2012-03-29 05:20:28 UTC) #8
Lambros
Dave, could you have a look at the Mac bits?
8 years, 8 months ago (2012-03-29 05:33:16 UTC) #9
dmac
Some comments http://codereview.chromium.org/9837031/diff/16002/remoting/host/plugin/daemon_controller_mac.cc File remoting/host/plugin/daemon_controller_mac.cc (right): http://codereview.chromium.org/9837031/diff/16002/remoting/host/plugin/daemon_controller_mac.cc#newcode33 remoting/host/plugin/daemon_controller_mac.cc:33: #define kConfigDir "/Library/PrivilegedHelperTools/" normally we wouldn't hardcode ...
8 years, 8 months ago (2012-03-29 14:52:41 UTC) #10
Lambros
http://codereview.chromium.org/9837031/diff/16002/remoting/host/plugin/daemon_controller_mac.cc File remoting/host/plugin/daemon_controller_mac.cc (right): http://codereview.chromium.org/9837031/diff/16002/remoting/host/plugin/daemon_controller_mac.cc#newcode104 remoting/host/plugin/daemon_controller_mac.cc:104: return remoting::DaemonController::STATE_NOT_IMPLEMENTED; On 2012/03/29 05:20:29, Jamie wrote: > Nit: ...
8 years, 8 months ago (2012-03-29 18:20:44 UTC) #11
dmac
8 years, 8 months ago (2012-03-29 23:46:25 UTC) #12
lgtm

http://codereview.chromium.org/9837031/diff/16002/remoting/host/plugin/daemon...
File remoting/host/plugin/daemon_controller_mac.cc (right):

http://codereview.chromium.org/9837031/diff/16002/remoting/host/plugin/daemon...
remoting/host/plugin/daemon_controller_mac.cc:216: kStartStopTool,
On 2012/03/29 18:20:44, Lambros wrote:
> Raised bug-report and added TODO for this.
> 
> On 2012/03/29 14:52:41, dmac wrote:
> > instead of running kStartStopTool directly with full privileges, would it be
> > better to run it via sandbox-exec and control it's potential for evil?
> > 
> > Also, possibly check to make sure that it's owner and chmod values are
correct
> > before firing it off? 
> 

OK... I would consider this to be of high priority from a security standpoint.

Powered by Google App Engine
This is Rietveld 408576698