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

Issue 2615003002: Use ChromeBrowserStateManager instead of BrowserListIOS. (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, sync-reviews_chromium.org, asvitkine+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use ChromeBrowserStateManager instead of BrowserListIOS. The BrowserListIOS was there as a parallel to BrowserList while the code was forked and is now only of historical interest as all of its methods can be implemented using ChromeBrowserStateManager. The following rules were used when converting from BrowserListIOS to ChromeBrowserStateManager: - re-implement BrowserListIOS::GetLastActiveWithBrowserState in term of iterating over all ios::ChromeBrowserState registered with the ChromeBrowserStateManager, and then over the TabModels associated with those ios::ChromeBrowserState - iteration over BrowserListIOS::begin()/BrowserListIOS::end() can be replaced by iterating over the list from GetLoadedBrowserState() and if off-the-record ios::ChromeBrowserState are wanted it, and for each of them iterating over the TabModels associated - BrowserListIOS::IsOffTheRecordSessionActive is re-implemented as a free function implemented on top of ChromeBrowserStateManager using the same rules. BUG=None Review-Url: https://codereview.chromium.org/2615003002 Cr-Original-Commit-Position: refs/heads/master@{#443590} Committed: https://chromium.googlesource.com/chromium/src/+/20f7270f96d194b98f3053a1f5035552cf758c2c Review-Url: https://codereview.chromium.org/2615003002 Cr-Commit-Position: refs/heads/master@{#443900} Committed: https://chromium.googlesource.com/chromium/src/+/6165c87433fd1016d114a1159780f6502c4ba798

Patch Set 1 #

Patch Set 2 : Fix ios_chrome_unittests. #

Patch Set 3 : Refactor to assume a 1:N mapping. #

Patch Set 4 : Rebase. #

Patch Set 5 : Rebase. #

Patch Set 6 : Fix ios_chrome_perftests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+561 lines, -635 lines) Patch
M ios/chrome/browser/browser_state/BUILD.gn View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M ios/chrome/browser/browser_state_metrics/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/metrics/BUILD.gn View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M ios/chrome/browser/metrics/ios_chrome_metrics_service_client.mm View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/metrics/ios_chrome_metrics_services_manager_client.mm View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/metrics/new_tab_page_uma.mm View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
M ios/chrome/browser/omaha/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/sessions/BUILD.gn View 2 chunks +0 lines, -2 lines 0 comments Download
M ios/chrome/browser/sessions/ios_chrome_tab_restore_service_client.mm View 1 2 3 chunks +62 lines, -25 lines 0 comments Download
M ios/chrome/browser/sessions/tab_restore_service_delegate_impl_ios.mm View 1 2 2 chunks +2 lines, -5 lines 0 comments Download
M ios/chrome/browser/sync/ios_chrome_sync_client.mm View 2 chunks +3 lines, -3 lines 0 comments Download
M ios/chrome/browser/tabs/BUILD.gn View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M ios/chrome/browser/tabs/tab_model_list.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M ios/chrome/browser/tabs/tab_model_list.mm View 1 2 2 chunks +44 lines, -0 lines 0 comments Download
M ios/chrome/browser/tabs/tab_model_synced_window_delegate.mm View 1 chunk +0 lines, -1 line 0 comments Download
M ios/chrome/browser/tabs/tab_model_synced_window_delegate_getter.h View 1 chunk +2 lines, -11 lines 0 comments Download
M ios/chrome/browser/tabs/tab_model_synced_window_delegate_getter.mm View 1 2 3 chunks +21 lines, -19 lines 0 comments Download
M ios/chrome/browser/tabs/tab_model_unittest.mm View 1 2 19 chunks +358 lines, -364 lines 0 comments Download
M ios/chrome/browser/tabs/tab_unittest.mm View 1 2 3 6 chunks +9 lines, -8 lines 0 comments Download
M ios/chrome/browser/test/perf_test_with_bvc_ios.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/test/perf_test_with_bvc_ios.mm View 1 2 3 4 5 3 chunks +8 lines, -2 lines 0 comments Download
M ios/chrome/browser/ui/BUILD.gn View 1 2 3 2 chunks +0 lines, -13 lines 0 comments Download
D ios/chrome/browser/ui/browser_ios.h View 1 chunk +0 lines, -26 lines 0 comments Download
D ios/chrome/browser/ui/browser_list_ios.h View 1 chunk +0 lines, -47 lines 0 comments Download
D ios/chrome/browser/ui/browser_list_ios.mm View 1 chunk +0 lines, -66 lines 0 comments Download
M ios/chrome/browser/ui/browser_view_controller.h View 3 chunks +7 lines, -3 lines 0 comments Download
M ios/chrome/browser/ui/browser_view_controller.mm View 1 2 3 4 6 chunks +8 lines, -14 lines 0 comments Download
M ios/chrome/test/app/BUILD.gn View 2 chunks +1 line, -1 line 0 comments Download
M ios/chrome/test/app/chrome_test_util.mm View 2 chunks +12 lines, -9 lines 0 comments Download

Messages

Total messages: 52 (38 generated)
sdefresne
Please take a look.
3 years, 11 months ago (2017-01-05 16:27:13 UTC) #4
sdefresne
ping
3 years, 11 months ago (2017-01-09 08:15:06 UTC) #7
sdefresne
On 2017/01/09 08:15:06, sdefresne wrote: > ping After irc discussion, it appears that the assumption ...
3 years, 11 months ago (2017-01-10 14:53:54 UTC) #19
sdefresne
This is now ready for review. PTAL.
3 years, 11 months ago (2017-01-12 14:38:58 UTC) #30
marq (ping after 24h)
LGTM
3 years, 11 months ago (2017-01-13 12:29:43 UTC) #33
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/2615003002/120001
3 years, 11 months ago (2017-01-13 14:38:27 UTC) #35
commit-bot: I haz the power
Failed to apply patch for ios/chrome/browser/ui/browser_view_controller.mm: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-13 14:42:41 UTC) #37
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/2615003002/140001
3 years, 11 months ago (2017-01-13 15:58:13 UTC) #40
commit-bot: I haz the power
Committed patchset #4 (id:140001) as https://chromium.googlesource.com/chromium/src/+/20f7270f96d194b98f3053a1f5035552cf758c2c
3 years, 11 months ago (2017-01-13 17:17:25 UTC) #43
Eugene But (OOO till 7-30)
A revert of this CL (patchset #4 id:140001) has been created in https://codereview.chromium.org/2628273004/ by eugenebut@chromium.org. ...
3 years, 11 months ago (2017-01-13 23:46:03 UTC) #44
sdefresne
I've fixed ios_chrome_perftests. Please take a look at ios/chrome/browser/test/perf_test_with_bvc_ios.* for the fix (last patchset).
3 years, 11 months ago (2017-01-16 09:37:28 UTC) #46
marq (ping after 24h)
Fix LGTM
3 years, 11 months ago (2017-01-16 11:58:50 UTC) #47
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/2615003002/180001
3 years, 11 months ago (2017-01-16 13:31:25 UTC) #49
commit-bot: I haz the power
3 years, 11 months ago (2017-01-16 15:42:39 UTC) #52
Message was sent while issue was closed.
Committed patchset #6 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/6165c87433fd1016d114a1159780...

Powered by Google App Engine
This is Rietveld 408576698