Index: ios/chrome/app/application_delegate/metrics_mediator.mm |
diff --git a/ios/chrome/app/application_delegate/metrics_mediator.mm b/ios/chrome/app/application_delegate/metrics_mediator.mm |
index 3b5ecee6992f944fc32d8e0d68da4e658581db76..bbd4e7c08614fce978fac9342d6c025e9e0e77ac 100644 |
--- a/ios/chrome/app/application_delegate/metrics_mediator.mm |
+++ b/ios/chrome/app/application_delegate/metrics_mediator.mm |
@@ -144,7 +144,7 @@ + (void)logLaunchMetricsWithStartupInformation: |
GURL ntpUrl = GURL(kChromeUINewTabURL); |
Tab* currentTab = [[browserViewInformation currentTabModel] currentTab]; |
- if (currentTab && [currentTab url] == ntpUrl) { |
+ if (currentTab.lastCommittedURL == ntpUrl) { |
kkhorimoto
2017/04/14 20:28:51
These metrics are gathered at startup, so I think
|
startupInformation.firstUserActionRecorder->RecordStartOnNTP(); |
[startupInformation resetFirstUserActionRecorder]; |
} else { |