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

Unified Diff: ios/chrome/app/application_delegate/metrics_mediator.mm

Issue 2819883002: Remove usage of Tab's |url| property from MetricsMediator. (Closed)
Patch Set: Check for tab before getting URL Created 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..191d49383af9ce501de922600dba13dd76046ee0 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 && currentTab.lastCommittedURL == ntpUrl) {
startupInformation.firstUserActionRecorder->RecordStartOnNTP();
[startupInformation resetFirstUserActionRecorder];
} else {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698