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

Issue 2621083003: Implement 1:N mapping from ios::ChromeBrowserState to TabModel. (Closed)

Created:
3 years, 11 months ago by sdefresne
Modified:
3 years, 11 months ago
CC:
chromium-reviews, 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

Implement 1:N mapping from ios::ChromeBrowserState to TabModel. In preparation of the removal of BrowserListIOS, implements free function to maintain explicitly the 1:N mapping from ios::ChromeBrowserState to TabModel. BUG=None Review-Url: https://codereview.chromium.org/2621083003 Cr-Commit-Position: refs/heads/master@{#442958} Committed: https://chromium.googlesource.com/chromium/src/+/8cfdf8fa9481346a3324901efcd93e281e2e757a

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address grammar error. #

Patch Set 3 : Use NSMutableSet<TabModel*>* to hold the TabModels. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -1 line) Patch
M ios/chrome/browser/tabs/BUILD.gn View 5 chunks +34 lines, -0 lines 0 comments Download
M ios/chrome/browser/tabs/tab_model.mm View 3 chunks +7 lines, -0 lines 0 comments Download
A ios/chrome/browser/tabs/tab_model_list.h View 1 1 chunk +37 lines, -0 lines 0 comments Download
A ios/chrome/browser/tabs/tab_model_list.mm View 1 2 1 chunk +87 lines, -0 lines 0 comments Download
A ios/chrome/browser/tabs/tab_model_list_unittest.mm View 1 chunk +75 lines, -0 lines 0 comments Download
M ios/chrome/browser/tabs/tab_model_unittest.mm View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (12 generated)
sdefresne
Please take a look. Note that the mapping owns a reference to the TabModel but ...
3 years, 11 months ago (2017-01-10 17:49:28 UTC) #4
sdefresne
ping?
3 years, 11 months ago (2017-01-11 15:46:22 UTC) #7
marq (ping after 24h)
https://codereview.chromium.org/2621083003/diff/1/ios/chrome/browser/tabs/tab_model_list.h File ios/chrome/browser/tabs/tab_model_list.h (right): https://codereview.chromium.org/2621083003/diff/1/ios/chrome/browser/tabs/tab_model_list.h#newcode10 ios/chrome/browser/tabs/tab_model_list.h:10: // This file contains free function to help maintain ...
3 years, 11 months ago (2017-01-11 15:56:47 UTC) #8
sdefresne
I've not yet changed the implementation to use an NSSet<> as I don't know whether ...
3 years, 11 months ago (2017-01-11 16:14:42 UTC) #9
marq (ping after 24h)
https://codereview.chromium.org/2621083003/diff/1/ios/chrome/browser/tabs/tab_model_list.mm File ios/chrome/browser/tabs/tab_model_list.mm (right): https://codereview.chromium.org/2621083003/diff/1/ios/chrome/browser/tabs/tab_model_list.mm#newcode30 ios/chrome/browser/tabs/tab_model_list.mm:30: NSMutableArray<TabModel*>* tab_models() const { return tab_models_; } On 2017/01/11 ...
3 years, 11 months ago (2017-01-11 16:20:52 UTC) #10
sdefresne
On 2017/01/11 16:20:52, marq wrote: > https://codereview.chromium.org/2621083003/diff/1/ios/chrome/browser/tabs/tab_model_list.mm > File ios/chrome/browser/tabs/tab_model_list.mm (right): > > https://codereview.chromium.org/2621083003/diff/1/ios/chrome/browser/tabs/tab_model_list.mm#newcode30 > ...
3 years, 11 months ago (2017-01-11 16:35:36 UTC) #13
sdefresne
On 2017/01/11 16:35:36, sdefresne wrote: > On 2017/01/11 16:20:52, marq wrote: > > > https://codereview.chromium.org/2621083003/diff/1/ios/chrome/browser/tabs/tab_model_list.mm ...
3 years, 11 months ago (2017-01-11 16:36:06 UTC) #14
marq (ping after 24h)
lgtm
3 years, 11 months ago (2017-01-11 18:00:29 UTC) #17
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/2621083003/40001
3 years, 11 months ago (2017-01-11 18:17:52 UTC) #19
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 18:23:00 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/8cfdf8fa9481346a3324901efcd9...

Powered by Google App Engine
This is Rietveld 408576698