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

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

Issue 2685803002: Fixed title updating for back forward navigation. (Closed)
Patch Set: Stubbed title call 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
Index: ios/web/web_state/ui/crw_wk_navigation_states.mm
diff --git a/ios/web/web_state/ui/crw_wk_navigation_states.mm b/ios/web/web_state/ui/crw_wk_navigation_states.mm
index f15ebc090b2be09e4d14de544cfdb69a13b89d03..59f1c6de5aa93ce405a7cf3bc9f8c6a432bb8023 100644
--- a/ios/web/web_state/ui/crw_wk_navigation_states.mm
+++ b/ios/web/web_state/ui/crw_wk_navigation_states.mm
@@ -105,4 +105,13 @@
return result;
}
+- (web::WKNavigationState)lastAddedNavigationState {
+ CRWWKNavigationsStateRecord* lastAddedRecord = nil;
+ WKNavigation* lastAddedNavigation = [self lastAddedNavigation];
+ if (lastAddedNavigation)
+ lastAddedRecord = [_records objectForKey:lastAddedNavigation];
+
+ return lastAddedRecord.state;
+}
+
@end
« no previous file with comments | « ios/web/web_state/ui/crw_wk_navigation_states.h ('k') | ios/web/web_state/ui/crw_wk_navigation_states_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698