OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "ash/wm/shutdown_client_proxy.h" | |
6 | |
7 #include "ash/public/interfaces/shutdown.mojom.h" | |
8 #include "services/service_manager/public/cpp/connector.h" | |
9 | |
10 namespace ash { | |
11 | |
12 ShutdownClientProxy::ShutdownClientProxy(service_manager::Connector* connector) | |
13 : connector_(connector) {} | |
James Cook
2016/11/02 20:20:03
nit: DCHECK connector_ (makes the parameter nullab
Elliot Glaysher
2016/11/02 21:45:16
Done.
Elliot Glaysher
2016/11/02 22:20:47
Reverted this one hunk. Breaks tests.
| |
14 | |
15 ShutdownClientProxy::~ShutdownClientProxy() {} | |
16 | |
17 void ShutdownClientProxy::RequestShutdown() { | |
18 mojom::ShutdownClientPtr client; | |
19 connector_->ConnectToInterface("service:content_browser", &client); | |
20 client->RequestShutdown(); | |
21 } | |
22 | |
23 } // namespace ash | |
OLD | NEW |