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

Unified Diff: chrome/browser/ui/passwords/password_manager_presenter.cc

Issue 2844963003: Introduce extensions::CreateUrlCollectionFromForm (Closed)
Patch Set: Add Unittest File Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/passwords/password_manager_presenter.cc
diff --git a/chrome/browser/ui/passwords/password_manager_presenter.cc b/chrome/browser/ui/passwords/password_manager_presenter.cc
index da0fe5733dcdf3567b72b67b0ac573cdeb6868e6..9e19abbfbb32aa9bb7eb9c82c8fa2c5a1d043e00 100644
--- a/chrome/browser/ui/passwords/password_manager_presenter.cc
+++ b/chrome/browser/ui/passwords/password_manager_presenter.cc
@@ -19,6 +19,7 @@
#include "base/time/time.h"
#include "base/values.h"
#include "build/build_config.h"
+#include "chrome/browser/extensions/api/passwords_private/passwords_private_utils.h"
#include "chrome/browser/password_manager/password_store_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/signin_manager_factory.h"
@@ -241,8 +242,8 @@ void PasswordManagerPresenter::RequestShowPassword(size_t index) {
}
// Call back the front end to reveal the password.
- std::string origin_url = password_manager::GetHumanReadableOrigin(
- *password_list_[index]);
+ std::string origin_url =
+ extensions::CreateUrlCollectionFromForm(*password_list_[index]).origin;
password_view_->ShowPassword(
index,
origin_url,

Powered by Google App Engine
This is Rietveld 408576698