|
|
Remove the concept of currentItemIndex
In NavigationManager and SessionController, the concept of current item
index is simply a duplicate of last committed item, and what's worse,
this results in GetCurrentItemIndex != GetItemIndex(GetCurrentItem),
which is counter-intuitive.
This CL removes the concept of currentItemIndex and converts callers to
use lastCommittedItemIndex instead.
This CL will diverges us from web content, but I think it's totally
worth it given that APIs containing "current" have become quite
untrustworthy, and removing this API will make our web code less
confusing.
NOTE: this CL doesn't touch the concept of currentItem.
BUG= 703863
Review-Url: https://codereview.chromium.org/2766063002
Cr-Commit-Position: refs/heads/master@{#459097}
Committed: https://chromium.googlesource.com/chromium/src/+/c833f1b7fee45abebea16b04eeaf62d198af3157
Total comments: 4
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+196 lines, -213 lines) |
Patch |
 |
M |
components/sessions/ios/ios_live_tab.mm
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ios/chrome/browser/native_app_launcher/native_app_navigation_util.mm
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ios/chrome/browser/sync/ios_chrome_synced_tab_delegate.mm
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ios/chrome/browser/web/navigation_manager_util.mm
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ios/shared/chrome/browser/tabs/web_state_list.mm
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ios/shared/chrome/browser/tabs/web_state_list_order_controller_unittest.mm
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
ios/shared/chrome/browser/tabs/web_state_list_unittest.mm
|
View
|
1
|
1 chunk |
+11 lines, -9 lines |
0 comments
|
Download
|
 |
M |
ios/web/navigation/crw_session_controller.h
|
View
|
1
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ios/web/navigation/crw_session_controller.mm
|
View
|
1
2
|
16 chunks |
+67 lines, -68 lines |
0 comments
|
Download
|
 |
M |
ios/web/navigation/crw_session_controller+private_constructors.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ios/web/navigation/crw_session_controller_unittest.mm
|
View
|
1
2
3
|
19 chunks |
+48 lines, -48 lines |
0 comments
|
Download
|
 |
M |
ios/web/navigation/crw_session_storage_unittest.mm
|
View
|
1
2
3
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ios/web/navigation/navigation_manager_impl.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
ios/web/navigation/navigation_manager_impl.mm
|
View
|
1
2
3
|
6 chunks |
+10 lines, -14 lines |
0 comments
|
Download
|
 |
M |
ios/web/navigation/navigation_manager_impl_unittest.mm
|
View
|
|
11 chunks |
+13 lines, -13 lines |
0 comments
|
Download
|
 |
M |
ios/web/navigation/session_storage_builder.mm
|
View
|
1
2
3
|
3 chunks |
+10 lines, -11 lines |
0 comments
|
Download
|
 |
M |
ios/web/net/crw_ssl_status_updater_unittest.mm
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ios/web/public/crw_session_storage.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ios/web/public/crw_session_storage.mm
|
View
|
1
2
3
|
4 chunks |
+11 lines, -13 lines |
0 comments
|
Download
|
 |
M |
ios/web/public/navigation_manager.h
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ios/web/public/test/fakes/test_navigation_manager.h
|
View
|
1
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ios/web/public/test/fakes/test_navigation_manager.mm
|
View
|
1
|
2 chunks |
+3 lines, -8 lines |
0 comments
|
Download
|
Total messages: 27 (18 generated)
|