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

Side by Side Diff: components/ukm/public/mojo_ukm_recorder.cc

Issue 2882353002: Implement Ukm Mojo interface. (Closed)
Patch Set: Move example to comment Created 3 years, 7 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 2017 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/ukm/public/mojo_ukm_recorder.h"
6
7 #include "base/memory/ptr_util.h"
8
9 namespace ukm {
10
11 MojoUkmRecorder::MojoUkmRecorder(mojom::UkmRecorderInterfacePtr interface)
12 : interface_(std::move(interface)){};
oystein (OOO til 10th of July) 2017/05/17 01:16:18 nit: space before {}
Steven Holte 2017/05/17 17:40:16 Done.
13 MojoUkmRecorder::~MojoUkmRecorder() = default;
14
15 void MojoUkmRecorder::UpdateSourceURL(SourceId source_id, const GURL& url) {
16 DCHECK(false);
17 // Not implemented yet, currently a no-op.
18 }
19
20 void MojoUkmRecorder::AddEntry(mojom::UkmEntryPtr entry) {
21 interface_->AddEntry(std::move(entry));
22 }
23
24 } // namespace ukm
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698