Commit abc4ce86 authored by sandromaggi's avatar sandromaggi Committed by Commit Bot

[Autofill Assistant] Use origin from Login instead of full link

Bug: b/143195594
Change-Id: Ie284f3d9d8b1a783d9a6508787a9fd0ac919c02f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1876029Reviewed-by: default avatarClemens Arbesser <arbesser@google.com>
Commit-Queue: Sandro Maggi <sandromaggi@google.com>
Cr-Commit-Position: refs/heads/master@{#708624}
parent ed7a8499
...@@ -23,7 +23,7 @@ class WebsiteLoginFetcher { ...@@ -23,7 +23,7 @@ class WebsiteLoginFetcher {
Login(const Login& other); Login(const Login& other);
~Login(); ~Login();
// The scheme, host, port and path of the login website. // The origin of the login website.
GURL origin; GURL origin;
std::string username; std::string username;
}; };
......
...@@ -86,7 +86,7 @@ class WebsiteLoginFetcherImpl::PendingFetchLoginsRequest ...@@ -86,7 +86,7 @@ class WebsiteLoginFetcherImpl::PendingFetchLoginsRequest
void OnFetchCompleted() override { void OnFetchCompleted() override {
std::vector<Login> logins; std::vector<Login> logins;
for (const auto* match : form_fetcher_->GetBestMatches()) { for (const auto* match : form_fetcher_->GetBestMatches()) {
logins.emplace_back(match->origin, logins.emplace_back(match->origin.GetOrigin(),
base::UTF16ToUTF8(match->username_value)); base::UTF16ToUTF8(match->username_value));
} }
std::move(callback_).Run(logins); std::move(callback_).Run(logins);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment