Commit 11b44dd3 authored by dbeam's avatar dbeam Committed by Commit bot

MD Settings: mergeable "View password" button fix

R=hcarmona@chromium.org
BUG=715866

Review-Url: https://codereview.chromium.org/2848983002
Cr-Commit-Position: refs/heads/master@{#468171}
parent 47c2232d
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include "chrome/browser/profiles/profile.h" #include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/api/passwords_private.h" #include "chrome/common/extensions/api/passwords_private.h"
#include "content/public/browser/browser_context.h" #include "content/public/browser/browser_context.h"
#include "url/gurl.h"
namespace extensions { namespace extensions {
...@@ -73,7 +74,8 @@ void PasswordsPrivateEventRouter::OnPlaintextPasswordFetched( ...@@ -73,7 +74,8 @@ void PasswordsPrivateEventRouter::OnPlaintextPasswordFetched(
const std::string& username, const std::string& username,
const std::string& plaintext_password) { const std::string& plaintext_password) {
api::passwords_private::PlaintextPasswordEventParameters params; api::passwords_private::PlaintextPasswordEventParameters params;
params.login_pair.urls.origin = origin_url; // TODO(crbug.com/715866): use origins and URLs more consistently.
params.login_pair.urls.origin = GURL(origin_url).GetOrigin().spec();
params.login_pair.username = username; params.login_pair.username = username;
params.plaintext_password = plaintext_password; params.plaintext_password = plaintext_password;
......
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