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

Issue 2766413004: [ios] Change API to inform WebStateList of opener-opened relationship. (Closed)

Created:
3 years, 9 months ago by sdefresne
Modified:
3 years, 9 months ago
CC:
chromium-reviews, marq+scrutinize_chromium.org, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, ios-reviews+clean_chromium.org, marq+watch_chromium.org, lpromero+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios] Change API to inform WebStateList of opener-opened relationship. To allow defining WebStateList serialisation outside of the class, e.g. in a free function, change the API used to inform WebStateList of the opener-opened relationship by introducing a WebStateOpener structure holding the opener WebState* and the opener navigation index (last committed navigation item index). BUG=546222 Review-Url: https://codereview.chromium.org/2766413004 Cr-Commit-Position: refs/heads/master@{#459413} Committed: https://chromium.googlesource.com/chromium/src/+/500f522bed305fac47a8c180f5817716636eb0ba

Patch Set 1 #

Patch Set 2 : Rebase on origin/master. #

Total comments: 4

Patch Set 3 : Rebase on origin/master. #

Patch Set 4 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -121 lines) Patch
M ios/chrome/browser/tabs/tab_model.mm View 5 chunks +23 lines, -8 lines 0 comments Download
M ios/clean/chrome/browser/ui/tab_grid/tab_grid_coordinator.mm View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ios/shared/chrome/browser/tabs/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
M ios/shared/chrome/browser/tabs/web_state_list.h View 3 chunks +15 lines, -17 lines 0 comments Download
M ios/shared/chrome/browser/tabs/web_state_list.mm View 1 11 chunks +27 lines, -40 lines 0 comments Download
M ios/shared/chrome/browser/tabs/web_state_list_fast_enumeration_helper_unittest.mm View 1 chunk +1 line, -1 line 0 comments Download
M ios/shared/chrome/browser/tabs/web_state_list_order_controller.mm View 2 chunks +5 lines, -4 lines 0 comments Download
M ios/shared/chrome/browser/tabs/web_state_list_order_controller_unittest.mm View 1 3 chunks +8 lines, -5 lines 0 comments Download
M ios/shared/chrome/browser/tabs/web_state_list_unittest.mm View 1 20 chunks +52 lines, -44 lines 0 comments Download
A ios/shared/chrome/browser/tabs/web_state_opener.h View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
A ios/shared/chrome/browser/tabs/web_state_opener.mm View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
A ios/shared/chrome/browser/tabs/web_state_opener_unittest.mm View 1 chunk +76 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (21 generated)
sdefresne
Please take a look and send to CQ if LGTY.
3 years, 9 months ago (2017-03-23 13:03:08 UTC) #5
sdefresne
-rohitrao, +marq: can you review? You suggested changing the API of WebStateList to allow serialisation ...
3 years, 9 months ago (2017-03-23 16:55:19 UTC) #13
marq (ping after 24h)
https://codereview.chromium.org/2766413004/diff/40001/ios/shared/chrome/browser/tabs/web_state_opener.h File ios/shared/chrome/browser/tabs/web_state_opener.h (right): https://codereview.chromium.org/2766413004/diff/40001/ios/shared/chrome/browser/tabs/web_state_opener.h#newcode14 ios/shared/chrome/browser/tabs/web_state_opener.h:14: web::WebState* opener; Comment on every field. https://codereview.chromium.org/2766413004/diff/40001/ios/shared/chrome/browser/tabs/web_state_opener.h#newcode18 ios/shared/chrome/browser/tabs/web_state_opener.h:18: // ...
3 years, 9 months ago (2017-03-24 09:35:27 UTC) #16
sdefresne
Please take another look. https://codereview.chromium.org/2766413004/diff/40001/ios/shared/chrome/browser/tabs/web_state_opener.h File ios/shared/chrome/browser/tabs/web_state_opener.h (right): https://codereview.chromium.org/2766413004/diff/40001/ios/shared/chrome/browser/tabs/web_state_opener.h#newcode14 ios/shared/chrome/browser/tabs/web_state_opener.h:14: web::WebState* opener; On 2017/03/24 09:35:27, ...
3 years, 9 months ago (2017-03-24 10:08:10 UTC) #17
marq (ping after 24h)
lgtm
3 years, 9 months ago (2017-03-24 11:45:23 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2766413004/100001
3 years, 9 months ago (2017-03-24 13:49:58 UTC) #25
commit-bot: I haz the power
3 years, 9 months ago (2017-03-24 14:02:36 UTC) #28
Message was sent while issue was closed.
Committed patchset #4 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/500f522bed305fac47a8c180f581...

Powered by Google App Engine
This is Rietveld 408576698