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

Issue 12212120: Replace most BrowserList::empty() and BrowserList::size() calls by multi-desktop aware calls. (Closed)

Created:
7 years, 10 months ago by gab
Modified:
7 years, 10 months ago
Reviewers:
sky
CC:
chromium-reviews, vsevik, sadrul, akalin, ben+watch_chromium.org, benjhayden+dwatch_chromium.org, Raghu Simha, tim (not reviewing), jianli, Dmitry Titov, yurys, marja+watch_chromium.org, jennb, dcheng, sail+watch_chromium.org, rdsmith+dwatch_chromium.org, haitaol1, pfeldman
Visibility:
Public.

Description

Replace most BrowserList::empty() and BrowserList::size() calls by multi-desktop aware calls. Introducing chrome::GetTotalBrowserCount() in browser_finder.cc which counts browsers across all desktops and profiles (this is the desired count for most BrowserList::empty() and BrowserList::size() consumers). Otherwise calling a specific BrowserListImpl's size() when appropriate. BUG=129187 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182178

Patch Set 1 #

Total comments: 2

Patch Set 2 : merge up to r181832 #

Patch Set 3 : static cast in window_applescript.mm #

Patch Set 4 : applescript bracket fun #

Patch Set 5 : merge up to r182110 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -103 lines) Patch
M chrome/browser/app_controller_mac.mm View 1 4 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/browser_commands_unittest.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chrome_main_browsertest.cc View 1 5 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/devtools/browser_list_tabcontents_provider.cc View 1 1 chunk +7 lines, -6 lines 0 comments Download
M chrome/browser/download/download_browsertest.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/fast_shutdown_browsertest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/lifetime/application_lifetime.cc View 1 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 2 chunks +12 lines, -7 lines 0 comments Download
M chrome/browser/printing/print_preview_dialog_controller_unittest.cc View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sessions/session_service.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app_unittest.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 4 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/ui/browser_finder.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_finder.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_navigator_browsertest.cc View 1 30 chunks +30 lines, -30 lines 0 comments Download
M chrome/browser/ui/browser_navigator_browsertest_chromeos.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/applescript/browsercrapplication+applescript.mm View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/applescript/window_applescript.mm View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/panels/panel_cocoa_browsertest.mm View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/uma_browsing_activity_observer.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/web_dialog_web_contents_delegate_unittest.cc View 5 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
gab
Scott, please take a look. The new method is at https://codereview.chromium.org/12212120/diff/1/chrome/browser/ui/browser_finder.cc ; the rest of ...
7 years, 10 months ago (2013-02-11 22:20:30 UTC) #1
sky
LGTM https://codereview.chromium.org/12212120/diff/1/chrome/browser/ui/cocoa/applescript/window_applescript.mm File chrome/browser/ui/cocoa/applescript/window_applescript.mm (right): https://codereview.chromium.org/12212120/diff/1/chrome/browser/ui/cocoa/applescript/window_applescript.mm#newcode215 chrome/browser/ui/cocoa/applescript/window_applescript.mm:215: if (index < 0 || index >= (int)chrome::GetTotalBrowserCount())) ...
7 years, 10 months ago (2013-02-12 00:44:52 UTC) #2
gab
Thanks! https://codereview.chromium.org/12212120/diff/1/chrome/browser/ui/cocoa/applescript/window_applescript.mm File chrome/browser/ui/cocoa/applescript/window_applescript.mm (right): https://codereview.chromium.org/12212120/diff/1/chrome/browser/ui/cocoa/applescript/window_applescript.mm#newcode215 chrome/browser/ui/cocoa/applescript/window_applescript.mm:215: if (index < 0 || index >= (int)chrome::GetTotalBrowserCount())) ...
7 years, 10 months ago (2013-02-12 03:53:51 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/12212120/7002
7 years, 10 months ago (2013-02-12 03:56:18 UTC) #4
commit-bot: I haz the power
Failed to apply patch for chrome/browser/app_controller_mac.mm: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 10 months ago (2013-02-12 03:56:26 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/12212120/7002
7 years, 10 months ago (2013-02-12 12:51:42 UTC) #6
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-12 13:17:41 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/12212120/20003
7 years, 10 months ago (2013-02-12 16:58:43 UTC) #8
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-12 17:38:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/12212120/20003
7 years, 10 months ago (2013-02-12 20:42:25 UTC) #10
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-13 02:08:05 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/12212120/20003
7 years, 10 months ago (2013-02-13 03:32:22 UTC) #12
commit-bot: I haz the power
Failed to apply patch for chrome/browser/printing/print_preview_dialog_controller_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 10 months ago (2013-02-13 03:32:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/12212120/2023
7 years, 10 months ago (2013-02-13 03:56:35 UTC) #14
commit-bot: I haz the power
7 years, 10 months ago (2013-02-13 09:53:21 UTC) #15
Message was sent while issue was closed.
Change committed as 182178

Powered by Google App Engine
This is Rietveld 408576698