|
|
Created:
4 years, 1 month ago by Avi (use Gerrit) Modified:
4 years, 1 month ago CC:
chromium-reviews Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionRemove stl_util's deletion function use from components/signin/.
BUG=555865
Committed: https://crrev.com/8bbf78833905b9b0ddf4edf17ae5902ef720aa99
Cr-Commit-Position: refs/heads/master@{#430689}
Patch Set 1 #
Total comments: 4
Patch Set 2 : fix #Patch Set 3 : more loop #
Messages
Total messages: 23 (13 generated)
The CQ bit was checked by avi@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
avi@chromium.org changed reviewers: + atwilson@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
avi@chromium.org changed reviewers: + rogerta@chromium.org
PTAL, thanks!
Hi Avi, a couple of questions below. Thanks. https://codereview.chromium.org/2461223003/diff/1/components/signin/core/brow... File components/signin/core/browser/about_signin_internals.cc (right): https://codereview.chromium.org/2461223003/diff/1/components/signin/core/brow... components/signin/core/browser/about_signin_internals.cc:340: for (const auto& token : signin_status_.token_info_map[account_id]) { For my own info, is there a danger of doing: for (const auto token : signin_status_.token_info_map[account_id]) or: for (auto token : signin_status_.token_info_map[account_id]) and having the map modified during iteration? Is this possibly a case where auto hides too much info? Maybe these loops should be written: for (const std::unique_ptr<TokenInfo>& token : signin_status_.token_info_map[account_id]) { } https://codereview.chromium.org/2461223003/diff/1/components/signin/core/brow... components/signin/core/browser/about_signin_internals.cc:421: std::tie(b->request_time, b->consumer_id, b->scopes); That's neat :-)
The CQ bit was checked by avi@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2461223003/diff/1/components/signin/core/brow... File components/signin/core/browser/about_signin_internals.cc (right): https://codereview.chromium.org/2461223003/diff/1/components/signin/core/brow... components/signin/core/browser/about_signin_internals.cc:340: for (const auto& token : signin_status_.token_info_map[account_id]) { On 2016/11/08 15:40:34, Roger Tawa wrote: > for (const auto token : signin_status_.token_info_map[account_id]) > for (auto token : signin_status_.token_info_map[account_id]) You can't do either of those. auto would deduce the type as unique_ptr<> which is non-copyable, so it would fail to compile as it tried to make a copy of each of the unique_ptrs. > for (const std::unique_ptr<TokenInfo>& token : > signin_status_.token_info_map[account_id]) { > } That would be clearer. I'll do that. https://codereview.chromium.org/2461223003/diff/1/components/signin/core/brow... components/signin/core/browser/about_signin_internals.cc:421: std::tie(b->request_time, b->consumer_id, b->scopes); On 2016/11/08 15:40:34, Roger Tawa wrote: > That's neat :-) Indeed it is :)
lgtm Thanks for the info.
Note that my comment about loops and not using auto could apply to other loops
On 2016/11/08 18:54:29, Roger Tawa wrote: > Note that my comment about loops and not using auto could apply to other loops Changing those too.
The CQ bit was checked by avi@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from rogerta@chromium.org Link to the patchset: https://codereview.chromium.org/2461223003/#ps40001 (title: "more loop")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== Remove stl_util's deletion function use from components/signin/. BUG=555865 ========== to ========== Remove stl_util's deletion function use from components/signin/. BUG=555865 Committed: https://crrev.com/8bbf78833905b9b0ddf4edf17ae5902ef720aa99 Cr-Commit-Position: refs/heads/master@{#430689} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/8bbf78833905b9b0ddf4edf17ae5902ef720aa99 Cr-Commit-Position: refs/heads/master@{#430689} |