forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move url_keyed_metrics capability from browser to an embedded service.
This removes the need for resource_coordinator service to have SetUkmRecorder interface, and just has it bind directly. Also introduces MojoUkmRecorder::Create to access this service, and uses this from Document::UkmRecorder(). Bug: 733995 Change-Id: Ie8320cbd12c54af90e35ba21b8f30eb4e3ef4a0b Reviewed-on: https://chromium-review.googlesource.com/611560 Commit-Queue: Steven Holte <[email protected]> Reviewed-by: Steven Holte <[email protected]> Reviewed-by: Daniel Cheng <[email protected]> Reviewed-by: Alexei Svitkine <[email protected]> Reviewed-by: Scott Violet <[email protected]> Reviewed-by: oysteine <[email protected]> Cr-Commit-Position: refs/heads/master@{#514656}
- Loading branch information
Showing
33 changed files
with
238 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright 2017 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
import("//services/service_manager/public/service_manifest.gni") | ||
|
||
service_manifest("manifest") { | ||
name = "metrics" | ||
source = "manifest.json" | ||
} | ||
|
||
source_set("metrics") { | ||
sources = [ | ||
"metrics_mojo_service.cc", | ||
"metrics_mojo_service.h", | ||
"ukm_recorder_interface.cc", | ||
"ukm_recorder_interface.h", | ||
] | ||
|
||
deps = [ | ||
"//mojo/public/cpp/bindings", | ||
"//services/metrics/public/cpp:metrics_cpp", | ||
"//services/metrics/public/interfaces", | ||
"//services/service_manager/public/cpp", | ||
"//url", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
file://base/metrics/OWNERS | ||
|
||
per-file manifest.json=set noparent | ||
per-file manifest.json=file://ipc/SECURITY_OWNERS | ||
|
||
# COMPONENT: Internals>Metrics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "metrics", | ||
"display_name": "Metrics Service", | ||
"interface_provider_specs": { | ||
"service_manager:connector": { | ||
"provides": { | ||
"url_keyed_metrics": [ | ||
"ukm::mojom::UkmRecorderInterface" | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.