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

Issue 2587313002: FormFetcherImpl: MakeWeakCopies no longer a template (Closed)

Created:
4 years ago by vabr (Chromium)
Modified:
4 years ago
Reviewers:
vasilii
CC:
chromium-reviews, gcasto+watchlist_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

FormFetcherImpl: MakeWeakCopies no longer a template MakeWeakCopies is a helper function inside the FormFetcherImpl implementation. It transforms a vector of unique_ptrs into the result of calling get() on them. It used to be used for pointers of different types, therefore it was a function template. But after https://codereview.chromium.org/2552263002, MakeWeakCopies is only used with PasswordForms. This CL: * Converts MakeWeakCopies to a simple function. * Removes some unnecessary "autofill::" in the same file. BUG=621355 R=vasilii@chromium.org Committed: https://crrev.com/a97b4417b06a86a4f006e4a06979817d3e552015 Cr-Commit-Position: refs/heads/master@{#439795}

Patch Set 1 #

Total comments: 2

Patch Set 2 : resize -> constructor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -11 lines) Patch
M components/password_manager/core/browser/form_fetcher_impl.cc View 1 2 chunks +11 lines, -11 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
vabr (Chromium)
Hi Vasilii, Please review. Thanks! Vaclav
4 years ago (2016-12-20 10:39:48 UTC) #5
vasilii
lgtm https://codereview.chromium.org/2587313002/diff/1/components/password_manager/core/browser/form_fetcher_impl.cc File components/password_manager/core/browser/form_fetcher_impl.cc (right): https://codereview.chromium.org/2587313002/diff/1/components/password_manager/core/browser/form_fetcher_impl.cc#newcode53 components/password_manager/core/browser/form_fetcher_impl.cc:53: result.resize(owning.size()); Combine those lines into std::vector<const PasswordForm*> result(owning.size());
4 years ago (2016-12-20 11:00:06 UTC) #6
vabr (Chromium)
Thanks! https://codereview.chromium.org/2587313002/diff/1/components/password_manager/core/browser/form_fetcher_impl.cc File components/password_manager/core/browser/form_fetcher_impl.cc (right): https://codereview.chromium.org/2587313002/diff/1/components/password_manager/core/browser/form_fetcher_impl.cc#newcode53 components/password_manager/core/browser/form_fetcher_impl.cc:53: result.resize(owning.size()); On 2016/12/20 11:00:06, vasilii wrote: > Combine ...
4 years ago (2016-12-20 13:36:27 UTC) #7
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/2587313002/20001
4 years ago (2016-12-20 13:36:44 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-20 14:22:57 UTC) #13
commit-bot: I haz the power
4 years ago (2016-12-20 14:25:39 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a97b4417b06a86a4f006e4a06979817d3e552015
Cr-Commit-Position: refs/heads/master@{#439795}

Powered by Google App Engine
This is Rietveld 408576698