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

Unified Diff: ios/web/web_state/ui/crw_web_controller.mm

Issue 2724103005: Remove Tab -currentNavigationItem. (Closed)
Patch Set: Rebase. Created 3 years, 10 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 | « ios/chrome/browser/tabs/tab_private.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/ui/crw_web_controller.mm
diff --git a/ios/web/web_state/ui/crw_web_controller.mm b/ios/web/web_state/ui/crw_web_controller.mm
index e162b1a18f0827149c95b2c8217c80a24fbd7e26..c3d1e8e87fafb0598963114f86cc362c16efbcb2 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -4795,9 +4795,9 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
- (void)SSLStatusUpdater:(CRWSSLStatusUpdater*)SSLStatusUpdater
didChangeSSLStatusForNavigationItem:(web::NavigationItem*)navigationItem {
- web::NavigationItem* currentNavigationItem =
+ web::NavigationItem* lastCommittedNavigationItem =
self.webState->GetNavigationManager()->GetLastCommittedItem();
- if (navigationItem == currentNavigationItem) {
+ if (navigationItem == lastCommittedNavigationItem) {
[self didUpdateSSLStatusForCurrentNavigationItem];
}
}
« no previous file with comments | « ios/chrome/browser/tabs/tab_private.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698