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

Side by Side Diff: components/arc/test/fake_arc_bridge_bootstrap.cc

Issue 1684063002: Add ArcEnabled policy implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@26869593
Patch Set: Fixed GuestModeOptionsUIBrowserTest.testSections Created 4 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
« no previous file with comments | « components/arc/test/fake_arc_bridge_bootstrap.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 "components/arc/test/fake_arc_bridge_bootstrap.h"
6
7 #include <utility>
8
9 #include "base/logging.h"
10 #include "components/arc/common/arc_bridge.mojom.h"
11 #include "components/arc/test/fake_arc_bridge_instance.h"
12 #include "mojo/public/cpp/bindings/interface_request.h"
13
14 namespace arc {
15
16 FakeArcBridgeBootstrap::FakeArcBridgeBootstrap(FakeArcBridgeInstance* instance)
17 : instance_(instance) {
18 }
19
20 void FakeArcBridgeBootstrap::Start() {
21 DCHECK(delegate_);
22 ArcBridgeInstancePtr instance;
23 instance_->Bind(mojo::GetProxy(&instance));
24 delegate_->OnConnectionEstablished(std::move(instance));
25 }
26
27 void FakeArcBridgeBootstrap::Stop() {
28 DCHECK(delegate_);
29 instance_->Unbind();
30 delegate_->OnStopped();
31 }
32
33 } // namespace arc
OLDNEW
« no previous file with comments | « components/arc/test/fake_arc_bridge_bootstrap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698