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

Unified Diff: chrome/browser/page_load_metrics/page_load_metrics_initialize.cc

Issue 2894973002: Provide WebContents::CreateParams to tab helpers. (Closed)
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/page_load_metrics/page_load_metrics_initialize.cc
diff --git a/chrome/browser/page_load_metrics/page_load_metrics_initialize.cc b/chrome/browser/page_load_metrics/page_load_metrics_initialize.cc
index 5b9d15cd189b2a26c44e462b9e9f85a65a74cab7..ac444105c327d1a8bae30dbb0be3d2c869ec643b 100644
--- a/chrome/browser/page_load_metrics/page_load_metrics_initialize.cc
+++ b/chrome/browser/page_load_metrics/page_load_metrics_initialize.cc
@@ -153,9 +153,11 @@ bool PageLoadMetricsEmbedder::IsNewTabPageUrl(const GURL& url) {
} // namespace
void InitializePageLoadMetricsForWebContents(
- content::WebContents* web_contents) {
+ content::WebContents* web_contents,
+ const base::Optional<content::WebContents::CreateParams>& create_params) {
page_load_metrics::MetricsWebContentsObserver::CreateForWebContents(
- web_contents, base::MakeUnique<PageLoadMetricsEmbedder>(web_contents));
+ web_contents, create_params,
+ base::MakeUnique<PageLoadMetricsEmbedder>(web_contents));
}
} // namespace chrome
« no previous file with comments | « chrome/browser/page_load_metrics/page_load_metrics_initialize.h ('k') | chrome/browser/prerender/prerender_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698