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

Issue 2798863004: [ios] Extend BrowserList API. (Closed)

Created:
3 years, 8 months ago by sdefresne
Modified:
3 years, 8 months ago
CC:
chromium-reviews, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios] Extend BrowserList API. Add a method BrowserList::GetIndexOfBrowser() to find the index of a Browser instance to simplify closing Browsers (since Browser are closed by index, not pointer). Rename GetBrowserCount() method to count() and inline it as it is a simple function (just a wrapper around std::vector::size()) and not inlining it could make the iteration over the BrowserList slow. BUG=None Review-Url: https://codereview.chromium.org/2798863004 Cr-Commit-Position: refs/heads/master@{#462452} Committed: https://chromium.googlesource.com/chromium/src/+/3a375fc9d871fe97a5a2bc23e5471d95619f1c49

Patch Set 1 #

Total comments: 2

Patch Set 2 : Revert name change of GetBrowserAtIndex(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -15 lines) Patch
M ios/shared/chrome/browser/ui/browser_list/browser_list.h View 1 2 chunks +8 lines, -2 lines 0 comments Download
M ios/shared/chrome/browser/ui/browser_list/browser_list.mm View 1 3 chunks +11 lines, -6 lines 0 comments Download
M ios/shared/chrome/browser/ui/browser_list/browser_list_unittest.mm View 1 1 chunk +28 lines, -7 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (14 generated)
sdefresne
Please take a look.
3 years, 8 months ago (2017-04-05 12:50:44 UTC) #3
marq (ping after 24h)
LGTM What's the motivation for these additions? Can you add that to the CL description? ...
3 years, 8 months ago (2017-04-05 13:43:24 UTC) #7
sdefresne
Updated the description to explain why the new method was added. Revert the name change ...
3 years, 8 months ago (2017-04-06 11:32:47 UTC) #9
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/2798863004/20001
3 years, 8 months ago (2017-04-06 13:32:58 UTC) #16
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 13:38:53 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/3a375fc9d871fe97a5a2bc23e547...

Powered by Google App Engine
This is Rietveld 408576698