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

Issue 2844963003: Introduce extensions::CreateUrlCollectionFromForm (Closed)

Created:
3 years, 8 months ago by jdoerrie
Modified:
3 years, 7 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, gcasto+watchlist_chromium.org, vabr+watchlistpasswordmanager_chromium.org, extensions-reviews_chromium.org, hcarmona
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce extensions::CreateUrlCollectionFromForm During the development of r466661 |GetHumanReadableOrigin| was replaced by |CreateURLFromForm| in passwords_private_delegate_impl.cc to be to handle Android credentials in an appropriate manner. However, there was an undetected reliance on using |GetHumanReadableOrigin| in order to display user passwords. Since the result of |CreateURLFromForm| is slightly different, the frontend was unable to match origins when displaying passwords. This change addresses this issue by replacing other calls to |GetHumanReadableOrigin| with |CreateUrlCollectionFromForm| restoring consistency between results. TBR=rdevlin.cronin@chromium.org BUG=717454 Review-Url: https://codereview.chromium.org/2844963003 Cr-Commit-Position: refs/heads/master@{#472702} Committed: https://chromium.googlesource.com/chromium/src/+/2d3f81e4a7d9839d5183dbabf17655fbbf0e5cb7

Patch Set 1 #

Patch Set 2 : Add Unittest File #

Total comments: 2

Patch Set 3 : Fix typo and don't include header on Android #

Patch Set 4 : Boolean logic is hard :/ #

Total comments: 5

Patch Set 5 : Revert One-Liner #

Messages

Total messages: 54 (33 generated)
jdoerrie
vabr@chromium.org: Please review changes in chrome/browser/ui/passwords/ stevenjb@chromium.org: Please review the CL as a whole.
3 years, 8 months ago (2017-04-27 11:34:05 UTC) #6
vabr (Chromium)
LGTM. Do the old (non-MD) settings work fine after this patch? Cheers, Vaclav https://codereview.chromium.org/2844963003/diff/20001/chrome/browser/extensions/api/passwords_private/passwords_private_delegate.h File ...
3 years, 8 months ago (2017-04-27 11:49:37 UTC) #9
jdoerrie
On 2017/04/27 11:49:37, vabr (Chromium) wrote: > LGTM. > Do the old (non-MD) settings work ...
3 years, 8 months ago (2017-04-27 11:59:28 UTC) #10
jdoerrie
On 2017/04/27 11:59:28, jdoerrie wrote: > On 2017/04/27 11:49:37, vabr (Chromium) wrote: > > LGTM. ...
3 years, 7 months ago (2017-04-27 11:59:58 UTC) #11
jdoerrie
Hi Vaclav, do you mind having another look at chrome/browser/ui/passwords/password_manager_presenter.cc? https://codereview.chromium.org/2844963003/diff/20001/chrome/browser/extensions/api/passwords_private/passwords_private_delegate.h File chrome/browser/extensions/api/passwords_private/passwords_private_delegate.h (right): https://codereview.chromium.org/2844963003/diff/20001/chrome/browser/extensions/api/passwords_private/passwords_private_delegate.h#newcode55 ...
3 years, 7 months ago (2017-04-27 14:49:32 UTC) #22
vabr (Chromium)
On 2017/04/27 14:49:32, jdoerrie wrote: > Hi Vaclav, do you mind having another look at ...
3 years, 7 months ago (2017-04-28 07:11:22 UTC) #23
jdoerrie
Thanks, vabr@! A friendly ping to stevenjb@ to review the rest.
3 years, 7 months ago (2017-04-28 08:22:21 UTC) #24
kolos1
On 2017/04/28 08:22:21, jdoerrie wrote: > Thanks, vabr@! > A friendly ping to stevenjb@ to ...
3 years, 7 months ago (2017-04-28 12:23:38 UTC) #26
stevenjb
+hcarmona@ who may understand the url details better than I do, but this looks fine ...
3 years, 7 months ago (2017-04-28 15:54:25 UTC) #28
hcarmona
This LGTM! Thanks for fixing this so quickly :-)
3 years, 7 months ago (2017-04-28 16:30:51 UTC) #29
hcarmona
At our stand up we talked about clicking commit on this CL so it lands ...
3 years, 7 months ago (2017-04-28 19:10:01 UTC) #31
Dan Beam
https://codereview.chromium.org/2844963003/diff/60001/chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc File chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc (right): https://codereview.chromium.org/2844963003/diff/60001/chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc#newcode126 chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc:126: base::Unretained(this), origin_url, username, web_contents)); why can't we just do ...
3 years, 7 months ago (2017-04-28 19:41:23 UTC) #32
jdoerrie
I provided more information why the change in its current form is necessary, I hope ...
3 years, 7 months ago (2017-04-28 21:12:52 UTC) #33
Dan Beam
https://codereview.chromium.org/2844963003/diff/60001/chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc File chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc (right): https://codereview.chromium.org/2844963003/diff/60001/chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc#newcode126 chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc:126: base::Unretained(this), origin_url, username, web_contents)); On 2017/04/28 21:12:52, jdoerrie wrote: ...
3 years, 7 months ago (2017-04-28 23:03:27 UTC) #34
Dan Beam
On 2017/04/28 23:03:27, Dan Beam wrote: > https://codereview.chromium.org/2844963003/diff/60001/chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc > File > chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc > (right): > ...
3 years, 7 months ago (2017-04-28 23:40:41 UTC) #36
Dan Beam
this was the one-liner I landed on the M59 branch: https://codereview.chromium.org/2848983002/ please feel free to ...
3 years, 7 months ago (2017-05-01 19:09:13 UTC) #37
jdoerrie
On 2017/05/01 19:09:13, Dan Beam wrote: > this was the one-liner I landed on the ...
3 years, 7 months ago (2017-05-02 09:17:39 UTC) #39
jdoerrie
rdevlin.cronin@chromium.org: TBR for chrome/browser/extensions/BUILD.gn
3 years, 7 months ago (2017-05-17 14:53:59 UTC) #45
Devlin
On 2017/05/17 14:53:59, jdoerrie wrote: > mailto:rdevlin.cronin@chromium.org: TBR for chrome/browser/extensions/BUILD.gn chrome/browser/extensions/BUILD.gn lgtm
3 years, 7 months ago (2017-05-17 15:04:53 UTC) #46
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/2844963003/80001
3 years, 7 months ago (2017-05-18 06:11:32 UTC) #51
commit-bot: I haz the power
3 years, 7 months ago (2017-05-18 06:18:24 UTC) #54
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/2d3f81e4a7d9839d5183dbabf176...

Powered by Google App Engine
This is Rietveld 408576698