Chromium Code Reviews| Index: ios/web/public/web_state/web_state_observer.h |
| diff --git a/ios/web/public/web_state/web_state_observer.h b/ios/web/public/web_state/web_state_observer.h |
| index 32954ee09e0276f39ca02469b109c1e5f9fd1e9b..60829accb22df6538a07cca56501c0d139369965 100644 |
| --- a/ios/web/public/web_state/web_state_observer.h |
| +++ b/ios/web/public/web_state/web_state_observer.h |
| @@ -38,7 +38,11 @@ class WebStateObserver { |
| // This method is invoked when committed navigation items have been pruned. |
| virtual void NavigationItemsPruned(size_t pruned_item_count) {} |
| - // This method is invoked when a navigation item has changed. |
| + // This method is invoked either when NavigationItem's titile did change or |
| + // when window.location.replace JavaScript API was called. |
| + // DEPRECATED. Use |TitleWasSet| to listen for title changes and |
| + // DidFinishNavigation for |window.location.replace|. |
|
michaeldo
2017/05/10 21:54:06
s / DidFinishNavigation / |DidFinishNavigation| ?
Eugene But (OOO till 7-30)
2017/05/10 22:53:46
Done.
|
| + // TODO(crbug.com/720786): Remove this method. |
| virtual void NavigationItemChanged() {} |
| // This method is invoked when a new non-pending navigation item is created. |