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

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

Issue 34393007: [Win] Add option to reauthenticate the OS user before revealing passwords. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@password
Patch Set: rebase. remove one unneeded commit. add support for changes in 39253002 Created 7 years, 1 month 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 6223656ac9cd4400150dde90948c0ebb6298ea00..24dd9bb2166fb2fe1814867ed802f684da20df6e 100644
--- a/chrome/browser/ui/passwords/password_manager_presenter.cc
+++ b/chrome/browser/ui/passwords/password_manager_presenter.cc
@@ -17,6 +17,7 @@
#include "chrome/common/url_constants.h"
#include "components/autofill/core/common/password_form.h"
#include "content/public/browser/user_metrics.h"
+#include "content/public/browser/web_contents.h"
PasswordManagerPresenter::PasswordManagerPresenter(
PasswordUIView* password_view)
@@ -95,7 +96,8 @@ void PasswordManagerPresenter::RemovePasswordException(size_t index) {
void PasswordManagerPresenter::RequestShowPassword(size_t index) {
DCHECK_LT(index, password_list_.size());
if (IsAuthenticationRequired()) {
- if (password_manager_util::AuthenticateUser())
+ if (password_manager_util::AuthenticateUser(
+ password_view_->GetWebContents()))
last_authentication_time_ = base::TimeTicks::Now();
else
return;

Powered by Google App Engine
This is Rietveld 408576698