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

Unified Diff: components/page_load_metrics/browser/metrics_web_contents_observer.h

Issue 1916913008: This patch uses the WebContents' opener to extract the previous committed url for the very first na… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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: components/page_load_metrics/browser/metrics_web_contents_observer.h
diff --git a/components/page_load_metrics/browser/metrics_web_contents_observer.h b/components/page_load_metrics/browser/metrics_web_contents_observer.h
index f18b126d4940c1e9afdbc3e679f2d4df1d705a5c..b01d5df2c6315c424cec6b4af0323bb72f3c12f2 100644
--- a/components/page_load_metrics/browser/metrics_web_contents_observer.h
+++ b/components/page_load_metrics/browser/metrics_web_contents_observer.h
@@ -111,7 +111,7 @@ class PageLoadTracker {
// the constructor.
PageLoadTracker(bool in_foreground,
PageLoadMetricsEmbedderInterface* embedder_interface,
- PageLoadTracker* const currently_committed_load_or_null,
+ const GURL& currently_committed_url,
content::NavigationHandle* navigation_handle,
int aborted_chain_size,
int aborted_chain_size_same_url);
@@ -292,6 +292,9 @@ class MetricsWebContentsObserver
scoped_ptr<PageLoadTracker> committed_load_;
+ // Has the MWCO observed at least one navigation?
+ bool has_navigated_;
+
DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver);
};

Powered by Google App Engine
This is Rietveld 408576698