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

Side by Side Diff: components/copresence/handlers/audio/tick_clock_ref_counted.cc

Issue 2130803002: Deleting the copresence API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "components/copresence/handlers/audio/tick_clock_ref_counted.h"
6
7 #include <utility>
8
9 #include "base/memory/ptr_util.h"
10 #include "base/time/tick_clock.h"
11
12 namespace copresence {
13
14 TickClockRefCounted::TickClockRefCounted(std::unique_ptr<base::TickClock> clock)
15 : clock_(std::move(clock)) {}
16
17 TickClockRefCounted::TickClockRefCounted(base::TickClock* clock)
18 : clock_(base::WrapUnique(clock)) {}
19
20 base::TimeTicks TickClockRefCounted::NowTicks() const {
21 return clock_->NowTicks();
22 }
23
24 TickClockRefCounted::~TickClockRefCounted() {}
25
26 } // namespace copresence
OLDNEW
« no previous file with comments | « components/copresence/handlers/audio/tick_clock_ref_counted.h ('k') | components/copresence/handlers/directive_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698