Chromium Code Reviews| Index: components/page_load_metrics/browser/page_load_metrics_observer.cc |
| diff --git a/components/page_load_metrics/browser/page_load_metrics_observer.cc b/components/page_load_metrics/browser/page_load_metrics_observer.cc |
| index 68de4d49fd291113c88d8f49c790a1a5c4a524db..4504a5231a8b52f7b34e4eaf6e9bc73d2a417cb1 100644 |
| --- a/components/page_load_metrics/browser/page_load_metrics_observer.cc |
| +++ b/components/page_load_metrics/browser/page_load_metrics_observer.cc |
| @@ -6,14 +6,15 @@ |
| namespace page_load_metrics { |
| -PageLoadExtraInfo::PageLoadExtraInfo(base::TimeDelta first_background_time, |
| - base::TimeDelta first_foreground_time, |
| - bool started_in_foreground, |
| - const GURL& committed_url, |
| - base::TimeDelta time_to_commit, |
| - UserAbortType abort_type, |
| - base::TimeDelta time_to_abort, |
| - const PageLoadMetadata& metadata) |
| +PageLoadExtraInfo::PageLoadExtraInfo( |
| + const base::Optional<base::TimeDelta>& first_background_time, |
| + const base::Optional<base::TimeDelta>& first_foreground_time, |
| + bool started_in_foreground, |
| + const GURL& committed_url, |
| + const base::Optional<base::TimeDelta>& time_to_commit, |
| + UserAbortType abort_type, |
| + const base::Optional<base::TimeDelta>& time_to_abort, |
| + const PageLoadMetadata& metadata) |
| : first_background_time(first_background_time), |
| first_foreground_time(first_foreground_time), |
| started_in_foreground(started_in_foreground), |
| @@ -25,4 +26,7 @@ PageLoadExtraInfo::PageLoadExtraInfo(base::TimeDelta first_background_time, |
| PageLoadExtraInfo::PageLoadExtraInfo(const PageLoadExtraInfo& other) = default; |
| +// Using Optional <T> for the fields made clang complaint about not having |
|
Charlie Harrison
2016/05/19 18:20:49
Suggestion: This comment isn't that useful. You ca
shivanisha
2016/05/23 15:06:43
removed
|
| +// an explicit out-of-line destructor |
| +PageLoadExtraInfo::~PageLoadExtraInfo() {} |
| } // namespace page_load_metrics |