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

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

Issue 2938443002: [GRC] UKM Support (Closed)
Patch Set: Address reviewer feedback Created 3 years, 6 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/ukm/public/mojo_ukm_recorder.h ('k') | components/ukm/public/ukm_recorder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 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 "components/ukm/public/mojo_ukm_recorder.h" 5 #include "components/ukm/public/mojo_ukm_recorder.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include <utility>
8 8
9 namespace ukm { 9 namespace ukm {
10 10
11 MojoUkmRecorder::MojoUkmRecorder(mojom::UkmRecorderInterfacePtr interface) 11 MojoUkmRecorder::MojoUkmRecorder(mojom::UkmRecorderInterfacePtr interface)
12 : interface_(std::move(interface)) {} 12 : interface_(std::move(interface)) {}
13 MojoUkmRecorder::~MojoUkmRecorder() = default; 13 MojoUkmRecorder::~MojoUkmRecorder() = default;
14 14
15 void MojoUkmRecorder::UpdateSourceURL(SourceId source_id, const GURL& url) { 15 void MojoUkmRecorder::UpdateSourceURL(SourceId source_id, const GURL& url) {
16 interface_->UpdateSourceURL(source_id, url.spec()); 16 interface_->UpdateSourceURL(source_id, url.spec());
17 } 17 }
18 18
19 void MojoUkmRecorder::AddEntry(mojom::UkmEntryPtr entry) { 19 void MojoUkmRecorder::AddEntry(mojom::UkmEntryPtr entry) {
20 interface_->AddEntry(std::move(entry)); 20 interface_->AddEntry(std::move(entry));
21 } 21 }
22 22
23 } // namespace ukm 23 } // namespace ukm
OLDNEW
« no previous file with comments | « components/ukm/public/mojo_ukm_recorder.h ('k') | components/ukm/public/ukm_recorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698