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

Issue 2628273004: Revert of Use ChromeBrowserStateManager instead of BrowserListIOS. (Closed)

Created:
3 years, 11 months ago by Eugene But (OOO till 7-30)
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

Revert of Use ChromeBrowserStateManager instead of BrowserListIOS. (patchset #4 id:140001 of https://codereview.chromium.org/2615003002/ ) Reason for revert: Breaks NewTabPagePerfTest.OpenNTP_Gentle https://goto.google.com/cl-2615003002-breaks-perf-test Original issue's 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-Commit-Position: refs/heads/master@{#443590} > Committed: https://chromium.googlesource.com/chromium/src/+/20f7270f96d194b98f3053a1f5035552cf758c2c TBR=rohitrao@chromium.org,marq@chromium.org,sdefresne@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=None Review-Url: https://codereview.chromium.org/2628273004 Cr-Commit-Position: refs/heads/master@{#443728} Committed: https://chromium.googlesource.com/chromium/src/+/e87dbcbbccc64f9fa09a7d5e607d50b446d63108

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+652 lines, -572 lines) Patch
M ios/chrome/browser/browser_state/BUILD.gn View 2 chunks +1 line, -2 lines 0 comments Download
M ios/chrome/browser/browser_state_metrics/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M ios/chrome/browser/metrics/BUILD.gn View 2 chunks +2 lines, -1 line 0 comments Download
M ios/chrome/browser/metrics/ios_chrome_metrics_service_client.mm View 2 chunks +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/metrics/ios_chrome_metrics_services_manager_client.mm View 2 chunks +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/metrics/new_tab_page_uma.mm View 1 chunk +5 lines, -4 lines 0 comments Download
M ios/chrome/browser/omaha/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/sessions/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/sessions/ios_chrome_tab_restore_service_client.mm View 3 chunks +25 lines, -62 lines 0 comments Download
M ios/chrome/browser/sessions/tab_restore_service_delegate_impl_ios.mm View 2 chunks +5 lines, -2 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 2 chunks +1 line, -1 line 0 comments Download
M ios/chrome/browser/tabs/tab_model_list.h View 1 chunk +0 lines, -8 lines 0 comments Download
M ios/chrome/browser/tabs/tab_model_list.mm View 2 chunks +0 lines, -44 lines 0 comments Download
M ios/chrome/browser/tabs/tab_model_synced_window_delegate.mm View 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/tabs/tab_model_synced_window_delegate_getter.h View 1 chunk +11 lines, -2 lines 0 comments Download
M ios/chrome/browser/tabs/tab_model_synced_window_delegate_getter.mm View 3 chunks +19 lines, -21 lines 0 comments Download
M ios/chrome/browser/tabs/tab_model_unittest.mm View 19 chunks +385 lines, -379 lines 0 comments Download
M ios/chrome/browser/tabs/tab_unittest.mm View 6 chunks +8 lines, -9 lines 0 comments Download
M ios/chrome/browser/ui/BUILD.gn View 2 chunks +13 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/browser_ios.h View 1 chunk +26 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/browser_list_ios.h View 1 chunk +47 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/browser_list_ios.mm View 1 chunk +66 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/browser_view_controller.h View 3 chunks +3 lines, -7 lines 0 comments Download
M ios/chrome/browser/ui/browser_view_controller.mm View 6 chunks +14 lines, -8 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 +9 lines, -12 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
Eugene But (OOO till 7-30)
Created Revert of Use ChromeBrowserStateManager instead of BrowserListIOS.
3 years, 11 months ago (2017-01-13 23:46:04 UTC) #2
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/2628273004/1
3 years, 11 months ago (2017-01-13 23:46:37 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/e87dbcbbccc64f9fa09a7d5e607d50b446d63108
3 years, 11 months ago (2017-01-13 23:48:15 UTC) #6
sdefresne
3 years, 11 months ago (2017-01-16 09:38:46 UTC) #7
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698