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

Issue 2640093004: WebStateList is an array of web::WebState* wrappers. (Closed)

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

Description

WebStateList is an array of web::WebState* wrappers. Introduce a super class of TabModel with the goal of moving all the code dealing with Tab management (iteration, selection, ...) eventually. This is a first step in removing the Tab* class that is mostly used as an Objective-C wrapper of web::WebState* with lots of helper methods. BUG=681867 Review-Url: https://codereview.chromium.org/2640093004 Cr-Commit-Position: refs/heads/master@{#445362} Committed: https://chromium.googlesource.com/chromium/src/+/3579f53085d00ff7a80eb97bb644a90becddc068

Patch Set 1 #

Total comments: 11

Patch Set 2 : Address comments. #

Patch Set 3 : Fix leaks (caught by unit tests). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+255 lines, -78 lines) Patch
M ios/chrome/browser/tabs/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/tabs/tab.h View 1 4 chunks +3 lines, -6 lines 0 comments Download
M ios/chrome/browser/tabs/tab_model.h View 1 4 chunks +3 lines, -5 lines 0 comments Download
M ios/chrome/browser/tabs/tab_model.mm View 1 2 28 chunks +73 lines, -67 lines 0 comments Download
M ios/chrome/browser/tabs/tab_model_unittest.mm View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
A ios/shared/chrome/browser/tabs/BUILD.gn View 1 1 chunk +16 lines, -0 lines 0 comments Download
A ios/shared/chrome/browser/tabs/web_state_handle.h View 1 1 chunk +26 lines, -0 lines 0 comments Download
A ios/shared/chrome/browser/tabs/web_state_list.h View 1 1 chunk +53 lines, -0 lines 0 comments Download
A ios/shared/chrome/browser/tabs/web_state_list.mm View 1 1 chunk +78 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
sdefresne
Could you take a first look?
3 years, 11 months ago (2017-01-19 12:58:41 UTC) #4
marq (ping after 24h)
LGTM Looks great, nits only. Can web_state_list go into ios/shared? https://codereview.chromium.org/2640093004/diff/1/ios/chrome/browser/tabs/tab_model.h File ios/chrome/browser/tabs/tab_model.h (right): https://codereview.chromium.org/2640093004/diff/1/ios/chrome/browser/tabs/tab_model.h#newcode85 ...
3 years, 11 months ago (2017-01-19 13:37:47 UTC) #7
marq (ping after 24h)
https://codereview.chromium.org/2640093004/diff/1/ios/chrome/browser/tabs/web_state_list.mm File ios/chrome/browser/tabs/web_state_list.mm (right): https://codereview.chromium.org/2640093004/diff/1/ios/chrome/browser/tabs/web_state_list.mm#newcode67 ios/chrome/browser/tabs/web_state_list.mm:67: - (id<WebStateHandle>)webStateAtIndex:(NSUInteger)index { Do we want to guard against ...
3 years, 11 months ago (2017-01-19 14:35:11 UTC) #8
sdefresne
Please take another look. https://codereview.chromium.org/2640093004/diff/1/ios/chrome/browser/tabs/tab_model.h File ios/chrome/browser/tabs/tab_model.h (right): https://codereview.chromium.org/2640093004/diff/1/ios/chrome/browser/tabs/tab_model.h#newcode85 ios/chrome/browser/tabs/tab_model.h:85: @interface TabModel : WebStateList On ...
3 years, 11 months ago (2017-01-20 14:42:09 UTC) #15
marq (ping after 24h)
Still LGTM, and thanks for moving into /shared. https://codereview.chromium.org/2640093004/diff/1/ios/chrome/browser/tabs/web_state_list.mm File ios/chrome/browser/tabs/web_state_list.mm (right): https://codereview.chromium.org/2640093004/diff/1/ios/chrome/browser/tabs/web_state_list.mm#newcode67 ios/chrome/browser/tabs/web_state_list.mm:67: - ...
3 years, 11 months ago (2017-01-20 14:49:17 UTC) #16
sdefresne
On 2017/01/20 14:49:17, marq wrote: > Still LGTM, and thanks for moving into /shared. > ...
3 years, 11 months ago (2017-01-23 10:51:14 UTC) #19
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/2640093004/40001
3 years, 11 months ago (2017-01-23 10:51:36 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/3579f53085d00ff7a80eb97bb644a90becddc068
3 years, 11 months ago (2017-01-23 12:16:17 UTC) #24
sdefresne
3 years, 11 months ago (2017-01-24 13:47:42 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2649403002/ by sdefresne@chromium.org.

The reason for reverting is: After offline discussion, WebStateList should
probably be a C++ class with a std::vector<WebState*>. Reverting this CL as next
step of the refactoring would more or less be a manual revert..

Powered by Google App Engine
This is Rietveld 408576698