commit | 5e9d912e4d276013bceaf99cbeb25e9484521fee | [log] [tgz] |
---|---|---|
author | Sofiya Semenova <[email protected]> | Thu Jul 11 02:46:41 2019 |
committer | Commit Bot <[email protected]> | Thu Jul 11 02:46:41 2019 |
tree | 60b65e1583b9a4c06c88ad450bfc40abb71ef94b | |
parent | 0df68e0e6903bfbc2695dbdb61e5b49996cf0782 [diff] [blame] |
Exposes the UKM source ID in WebContentsImpl to WebContents. Exposes the UKM source ID from WebContentsImpl to WebContents, so it can be used in NavigationPredictor to send metrics to the UKM. Bug: 972128 Change-Id: I7181890ed7977904b8d4dca9db78b7bbbad85b83 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1686633 Reviewed-by: Steven Holte <[email protected]> Reviewed-by: Kinuko Yasuda <[email protected]> Reviewed-by: Tarun Bansal <[email protected]> Reviewed-by: Ryan Sturm <[email protected]> Commit-Queue: Sofiya Semenova <[email protected]> Cr-Commit-Position: refs/heads/master@{#676267}
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc index 3cc697a..4f1cac5 100644 --- a/content/browser/web_contents/web_contents_impl.cc +++ b/content/browser/web_contents/web_contents_impl.cc
@@ -6725,6 +6725,10 @@ return GetAudioStreamFactory()->group_id(); } +ukm::SourceId WebContentsImpl::GetLastCommittedSourceId() { + return last_committed_source_id_; +} + BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() const { return browser_plugin_embedder_.get(); }