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

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

Issue 2844963003: Introduce extensions::CreateUrlCollectionFromForm (Closed)
Patch Set: Revert One-Liner Created 3 years, 7 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..9c2dfe7110f2732c578573775d5df17bf12129b7 100644
--- a/chrome/browser/ui/passwords/password_manager_presenter.cc
+++ b/chrome/browser/ui/passwords/password_manager_presenter.cc
@@ -46,6 +46,10 @@
#include "chrome/browser/password_manager/password_manager_util_mac.h"
#endif
+#if !defined(OS_ANDROID)
+#include "chrome/browser/extensions/api/passwords_private/passwords_private_utils.h"
+#endif
+
using base::StringPiece;
using password_manager::PasswordStore;
@@ -241,8 +245,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