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

Unified Diff: components/password_manager/content/browser/content_password_manager_driver.cc

Issue 208453002: Add "previewing on hover" support for password field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Improve rebased code. Created 6 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: components/password_manager/content/browser/content_password_manager_driver.cc
diff --git a/components/password_manager/content/browser/content_password_manager_driver.cc b/components/password_manager/content/browser/content_password_manager_driver.cc
index 6ef6916e80fee04257adb5e197b34376dba8bacc..0a4b88a34f27ee1fe98d10d2c585da75dae215d2 100644
--- a/components/password_manager/content/browser/content_password_manager_driver.cc
+++ b/components/password_manager/content/browser/content_password_manager_driver.cc
@@ -64,6 +64,22 @@ void ContentPasswordManagerDriver::AcceptPasswordAutofillSuggestion(
password));
}
+void ContentPasswordManagerDriver::PreviewPasswordAutofillSuggestion(
+ const base::string16& username,
+ const base::string16& password) {
+ content::RenderViewHost* host = web_contents()->GetRenderViewHost();
+ host->Send(
+ new AutofillMsg_PreviewPasswordAutofillSuggestion(host->GetRoutingID(),
+ username,
+ password));
+}
+
+void ContentPasswordManagerDriver::ClearPasswordPreviewedForm() {
+ content::RenderViewHost* host = web_contents()->GetRenderViewHost();
+ host->Send(
+ new AutofillMsg_ClearPreviewedForm(host->GetRoutingID()));
+}
+
bool ContentPasswordManagerDriver::DidLastPageLoadEncounterSSLErrors() {
DCHECK(web_contents());
content::NavigationEntry* entry =

Powered by Google App Engine
This is Rietveld 408576698