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

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

Issue 2873023002: Call WebStateObserver::ProvisionalNavigationStarted for state navigations (Closed)
Patch Set: Rebased Created 3 years, 7 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/web/web_state/navigation_callbacks_inttest.mm ('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 835be5ea5fd887c005feda5c46e9d193c16995d6..20eb3c3c788ee8dff294274e37704a2ddcea7bc6 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -1339,6 +1339,7 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
- (void)pushStateWithPageURL:(const GURL&)pageURL
stateObject:(NSString*)stateObject
transition:(ui::PageTransition)transition {
+ _webStateImpl->OnProvisionalNavigationStarted(pageURL);
[[self sessionController] pushNewItemWithURL:pageURL
stateObject:stateObject
transition:transition];
@@ -1351,6 +1352,7 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
- (void)replaceStateWithPageURL:(const GURL&)pageURL
stateObject:(NSString*)stateObject {
+ _webStateImpl->OnProvisionalNavigationStarted(pageURL);
[[self sessionController] updateCurrentItemWithURL:pageURL
stateObject:stateObject];
std::unique_ptr<web::NavigationContext> context =
« no previous file with comments | « ios/web/web_state/navigation_callbacks_inttest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698