OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "mojo/public/shell/service.h" | 5 #include "mojo/public/shell/service.h" |
6 | 6 |
7 namespace mojo { | 7 namespace mojo { |
8 | 8 |
9 ServiceFactoryBase::ServiceFactoryBase(ScopedMessagePipeHandle shell_handle) | 9 ServiceFactoryBase::ServiceFactoryBase(ScopedMessagePipeHandle shell_handle) |
10 : shell_(shell_handle.Pass(), this) { | 10 : shell_(shell_handle.Pass(), this) { |
11 } | 11 } |
12 | 12 |
13 ServiceFactoryBase::~ServiceFactoryBase() {} | 13 ServiceFactoryBase::~ServiceFactoryBase() {} |
14 | 14 |
15 void ServiceFactoryBase::DisconnectFromShell() { | |
16 shell_.reset(); | |
darin (slow to review)
2014/02/06 05:00:46
It seems like at this point we should be quiting t
| |
17 } | |
18 | |
15 } // namespace mojo | 19 } // namespace mojo |
OLD | NEW |