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

Issue 2748793002: [ios] Add a delegate to WebStateList class. (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/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios] Add a delegate to WebStateList class. In order to attach the tab helpers to WebState when they are inserted in the WebStateList, without having the list of tab helpers known to the WebStateList. BUG=687207 Review-Url: https://codereview.chromium.org/2748793002 Cr-Commit-Position: refs/heads/master@{#456705} Committed: https://chromium.googlesource.com/chromium/src/+/365a73ab9da546dc6898bef703b688c82c292527

Patch Set 1 #

Total comments: 3

Patch Set 2 : Browser owns the BrowserWebStateListDelegate. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -57 lines) Patch
M ios/chrome/browser/tabs/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/tabs/tab_model.mm View 1 22 chunks +47 lines, -38 lines 0 comments Download
A ios/chrome/browser/tabs/tab_model_web_state_list_delegate.h View 1 1 chunk +29 lines, -0 lines 0 comments Download
A ios/chrome/browser/tabs/tab_model_web_state_list_delegate.mm View 1 1 chunk +20 lines, -0 lines 0 comments Download
M ios/clean/chrome/browser/model/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M ios/clean/chrome/browser/model/browser.h View 1 2 chunks +9 lines, -4 lines 1 comment Download
M ios/clean/chrome/browser/model/browser.mm View 1 1 chunk +8 lines, -2 lines 0 comments Download
M ios/clean/chrome/browser/model/browser_list.h View 1 2 chunks +2 lines, -1 line 0 comments Download
A ios/clean/chrome/browser/model/browser_web_state_list_delegate.h View 1 1 chunk +28 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/model/browser_web_state_list_delegate.mm View 1 1 chunk +20 lines, -0 lines 0 comments Download
M ios/shared/chrome/browser/tabs/BUILD.gn View 3 chunks +15 lines, -0 lines 0 comments Download
A ios/shared/chrome/browser/tabs/fake_web_state_list_delegate.h View 1 chunk +24 lines, -0 lines 0 comments Download
A ios/shared/chrome/browser/tabs/fake_web_state_list_delegate.mm View 1 chunk +15 lines, -0 lines 0 comments Download
M ios/shared/chrome/browser/tabs/web_state_list.h View 4 chunks +11 lines, -2 lines 0 comments Download
M ios/shared/chrome/browser/tabs/web_state_list.mm View 4 chunks +12 lines, -3 lines 0 comments Download
A ios/shared/chrome/browser/tabs/web_state_list_delegate.h View 1 chunk +30 lines, -0 lines 0 comments Download
M ios/shared/chrome/browser/tabs/web_state_list_fast_enumeration_helper_unittest.mm View 3 chunks +4 lines, -1 line 0 comments Download
M ios/shared/chrome/browser/tabs/web_state_list_order_controller_unittest.mm View 2 chunks +3 lines, -1 line 0 comments Download
M ios/shared/chrome/browser/tabs/web_state_list_unittest.mm View 4 chunks +11 lines, -5 lines 0 comments Download

Messages

Total messages: 19 (11 generated)
sdefresne
Please take a look. https://codereview.chromium.org/2748793002/diff/1/ios/chrome/browser/tabs/tab_model_web_state_list_delegate.h File ios/chrome/browser/tabs/tab_model_web_state_list_delegate.h (right): https://codereview.chromium.org/2748793002/diff/1/ios/chrome/browser/tabs/tab_model_web_state_list_delegate.h#newcode18 ios/chrome/browser/tabs/tab_model_web_state_list_delegate.h:18: void WillAddWebState(web::WebState* web_state) override; Upstream ...
3 years, 9 months ago (2017-03-13 17:15:31 UTC) #4
rohitrao (ping after 24h)
https://codereview.chromium.org/2748793002/diff/1/ios/chrome/browser/tabs/tab_model_web_state_list_delegate.h File ios/chrome/browser/tabs/tab_model_web_state_list_delegate.h (right): https://codereview.chromium.org/2748793002/diff/1/ios/chrome/browser/tabs/tab_model_web_state_list_delegate.h#newcode18 ios/chrome/browser/tabs/tab_model_web_state_list_delegate.h:18: void WillAddWebState(web::WebState* web_state) override; On 2017/03/13 17:15:30, sdefresne wrote: ...
3 years, 9 months ago (2017-03-14 11:51:12 UTC) #7
sdefresne
On 2017/03/14 11:51:12, rohitrao wrote: > https://codereview.chromium.org/2748793002/diff/1/ios/chrome/browser/tabs/tab_model_web_state_list_delegate.h > File ios/chrome/browser/tabs/tab_model_web_state_list_delegate.h (right): > > https://codereview.chromium.org/2748793002/diff/1/ios/chrome/browser/tabs/tab_model_web_state_list_delegate.h#newcode18 > ...
3 years, 9 months ago (2017-03-14 12:07:19 UTC) #8
sdefresne
Please take another look.
3 years, 9 months ago (2017-03-14 13:53:49 UTC) #10
rohitrao (ping after 24h)
lgtm https://codereview.chromium.org/2748793002/diff/20001/ios/clean/chrome/browser/model/browser.h File ios/clean/chrome/browser/model/browser.h (right): https://codereview.chromium.org/2748793002/diff/20001/ios/clean/chrome/browser/model/browser.h#newcode26 ios/clean/chrome/browser/model/browser.h:26: WebStateList& web_state_list() { return *web_state_list_.get(); } Why this ...
3 years, 9 months ago (2017-03-14 13:57:28 UTC) #12
sdefresne
On 2017/03/14 13:57:28, rohitrao wrote: > lgtm > > https://codereview.chromium.org/2748793002/diff/20001/ios/clean/chrome/browser/model/browser.h > File ios/clean/chrome/browser/model/browser.h (right): > ...
3 years, 9 months ago (2017-03-14 13:59:10 UTC) #13
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/2748793002/20001
3 years, 9 months ago (2017-03-14 13:59:55 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 15:08:00 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/365a73ab9da546dc6898bef703b6...

Powered by Google App Engine
This is Rietveld 408576698