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

Issue 1644773003: Remove BrowserIterator (Closed)

Created:
4 years, 11 months ago by scottmg
Modified:
4 years, 10 months ago
Reviewers:
sky
CC:
chromium-reviews, asanka, skanuj+watch_chromium.org, sadrul, oshima+watch_chromium.org, zea+watch_chromium.org, dhollowa+watch_chromium.org, johnme+watch_chromium.org, maxbogue+watch_chromium.org, dcheng, rginda+watch_chromium.org, ajwong+watch_chromium.org, tim+watch_chromium.org, extensions-reviews_chromium.org, melevin+watch_chromium.org, jam, plaree+watch_chromium.org, darin-cc_chromium.org, devtools-reviews_chromium.org, chromium-apps-reviews_chromium.org, harkness+watch_chromium.org, dougw+watch_chromium.org, Avi (use Gerrit), jennb, creis+watch_chromium.org, Peter Beverloo, jianli, jfweitz+watch_chromium.org, asvitkine+watch_chromium.org, kalyank, Jered, tfarina, donnd+watch_chromium.org, Dmitry Titov, mvanouwerkerk+watch_chromium.org, David Black, davemoore+watch_chromium.org, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, pfeldman
Base URL:
https://chromium.googlesource.com/chromium/src.git@host-desktop-1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove BrowserIterator Use BrowserList directly instead. R=sky@chromium.org BUG=558054 Committed: https://crrev.com/8abbff836d5218218f4c18f9a51c4167f62a9f04 Cr-Commit-Position: refs/heads/master@{#372197}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 1

Patch Set 3 : . #

Patch Set 4 : mac #

Total comments: 3

Patch Set 5 : auto* #

Total comments: 10

Patch Set 6 : fixes #

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -405 lines) Patch
M chrome/browser/after_startup_task_utils.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/app_controller_mac.mm View 1 2 3 4 5 4 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/apps/app_window_interactive_uitest.cc View 1 2 3 4 5 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/boot_times_recorder.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/custom_home_pages_table_model.cc View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/devtools/devtools_sanity_browsertest.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/devtools/devtools_ui_bindings.cc View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/devtools/devtools_window.cc View 1 2 3 4 5 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/devtools/remote_debugging_server.cc View 1 2 3 4 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/download/download_status_updater_win.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/cookies/cookies_api.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/management/management_apitest.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_api.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_event_router.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_api.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_tab_util.cc View 1 2 3 4 5 chunks +7 lines, -10 lines 0 comments Download
M chrome/browser/extensions/window_open_apitest.cc View 1 2 3 4 3 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/fast_shutdown_browsertest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/lifetime/application_lifetime.cc View 1 2 3 4 5 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/lifetime/browser_close_manager.cc View 1 2 3 4 5 6 6 chunks +23 lines, -20 lines 0 comments Download
M chrome/browser/lifetime/browser_close_manager_browsertest.cc View 24 chunks +25 lines, -25 lines 0 comments Download
M chrome/browser/memory/tab_manager.cc View 1 2 3 4 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/metrics/first_web_contents_profiler.cc View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/profile_resetter/profile_resetter.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_notification_manager.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/search/search.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/sessions/better_session_restore_browsertest.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sessions/session_restore_browsertest_chromeos.cc View 1 2 3 4 4 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/sessions/session_service.cc View 1 2 3 4 5 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/task_manager/tab_contents_information.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc View 1 2 3 4 2 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 4 5 chunks +15 lines, -15 lines 0 comments Download
M chrome/browser/ui/browser_finder.cc View 1 2 3 4 3 chunks +4 lines, -6 lines 0 comments Download
D chrome/browser/ui/browser_iterator.h View 1 chunk +0 lines, -61 lines 0 comments Download
D chrome/browser/ui/browser_iterator.cc View 1 chunk +0 lines, -23 lines 0 comments Download
M chrome/browser/ui/browser_list.cc View 1 2 3 4 5 chunks +14 lines, -12 lines 0 comments Download
M chrome/browser/ui/browser_tab_strip_tracker.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/applescript/browsercrapplication+applescript.mm View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac_browsertest.mm View 1 2 3 4 4 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac_interactive_uitest.mm View 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/extensions/hosted_app_browsertest.cc View 1 2 3 4 3 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/ui/panels/panel_browsertest.cc View 1 2 3 4 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/settings_window_manager_browsertest.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_browsertest.cc View 1 2 3 4 3 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_triggered_reset_browsertest_win.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/sync/browser_synced_window_delegate.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/sync/browser_synced_window_delegates_getter.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_iterator.h View 1 2 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_iterator.cc View 1 2 1 chunk +9 lines, -5 lines 0 comments Download
M chrome/browser/ui/tabs/pinned_tab_codec.cc View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/tabs/pinned_tab_service.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/tabs/tab_strip_model_stats_recorder.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/uma_browsing_activity_observer.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_window_property_manager_browsertest_win.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/memory_internals/memory_internals_proxy.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/test/base/dialog_test_browser_window.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/test/base/ui_test_utils.cc View 1 2 3 4 4 chunks +7 lines, -8 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
scottmg
https://codereview.chromium.org/1644773003/diff/20001/chrome/browser/lifetime/browser_close_manager.cc File chrome/browser/lifetime/browser_close_manager.cc (right): https://codereview.chromium.org/1644773003/diff/20001/chrome/browser/lifetime/browser_close_manager.cc#newcode154 chrome/browser/lifetime/browser_close_manager.cc:154: for (BrowserList::const_iterator browser = This is the only one ...
4 years, 11 months ago (2016-01-28 02:19:54 UTC) #2
sky
I started looking at this, but either I'm totally missing something or you haven't tried ...
4 years, 11 months ago (2016-01-28 03:04:05 UTC) #3
scottmg
(It looks like there are a couple compile problems on Mac though, so if you ...
4 years, 11 months ago (2016-01-28 03:09:23 UTC) #4
scottmg
Switched auto& to auto*.
4 years, 10 months ago (2016-01-28 06:38:20 UTC) #5
sky
https://codereview.chromium.org/1644773003/diff/100001/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): https://codereview.chromium.org/1644773003/diff/100001/chrome/browser/app_controller_mac.mm#newcode638 chrome/browser/app_controller_mac.mm:638: for (auto* browser : *BrowserList::GetInstance()) { nit: no {} ...
4 years, 10 months ago (2016-01-28 16:58:13 UTC) #6
scottmg
https://codereview.chromium.org/1644773003/diff/100001/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): https://codereview.chromium.org/1644773003/diff/100001/chrome/browser/app_controller_mac.mm#newcode638 chrome/browser/app_controller_mac.mm:638: for (auto* browser : *BrowserList::GetInstance()) { On 2016/01/28 16:58:12, ...
4 years, 10 months ago (2016-01-28 17:36:28 UTC) #7
sky
LGTM https://codereview.chromium.org/1644773003/diff/100001/chrome/browser/lifetime/browser_close_manager.cc File chrome/browser/lifetime/browser_close_manager.cc (right): https://codereview.chromium.org/1644773003/diff/100001/chrome/browser/lifetime/browser_close_manager.cc#newcode173 chrome/browser/lifetime/browser_close_manager.cc:173: if (browser != BrowserList::GetInstance()->end() && I'm assuming you ...
4 years, 10 months ago (2016-01-28 19:12:05 UTC) #8
scottmg
https://codereview.chromium.org/1644773003/diff/100001/chrome/browser/lifetime/browser_close_manager.cc File chrome/browser/lifetime/browser_close_manager.cc (right): https://codereview.chromium.org/1644773003/diff/100001/chrome/browser/lifetime/browser_close_manager.cc#newcode173 chrome/browser/lifetime/browser_close_manager.cc:173: if (browser != BrowserList::GetInstance()->end() && On 2016/01/28 19:12:05, sky ...
4 years, 10 months ago (2016-01-28 19:14:55 UTC) #9
sky
I think a DCHECK would be nice, but the early return shouldn't be necessary. On ...
4 years, 10 months ago (2016-01-28 21:19:18 UTC) #10
scottmg
On 2016/01/28 21:19:18, sky wrote: > I think a DCHECK would be nice, but the ...
4 years, 10 months ago (2016-01-28 21:42:33 UTC) #11
sky
LGTM
4 years, 10 months ago (2016-01-28 22:19:33 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1644773003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1644773003/140001
4 years, 10 months ago (2016-01-28 22:37:59 UTC) #14
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 10 months ago (2016-01-28 22:57:46 UTC) #15
commit-bot: I haz the power
4 years, 10 months ago (2016-01-28 22:58:40 UTC) #17
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/8abbff836d5218218f4c18f9a51c4167f62a9f04
Cr-Commit-Position: refs/heads/master@{#372197}

Powered by Google App Engine
This is Rietveld 408576698