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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2378503002: Observe visibility of password inputs, for HTTP-bad phase 1 (Closed)
Patch Set: fix superclass createLayoutObject call Created 4 years, 2 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/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 135a0ccca171dfc7600b12ebada6104a8afccd0a..68c139f9e1f718f841a7f3c2cd2741e1c9cc9d99 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -129,6 +129,7 @@
#include "components/metrics/client_info.h"
#include "components/net_log/chrome_net_log.h"
#include "components/password_manager/content/browser/content_password_manager_driver_factory.h"
+#include "components/password_manager/content/browser/password_visibility_service_factory.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_service.h"
#include "components/prefs/scoped_user_pref_update.h"
@@ -2987,6 +2988,11 @@ void ChromeContentBrowserClient::RegisterRenderFrameMojoInterfaces(
BindPasswordManagerDriver,
render_frame_host));
+ registry->AddInterface(
+ base::Bind(&password_manager::PasswordVisibilityServiceFactory::
+ BindSensitiveInputVisibilityService,
+ render_frame_host));
+
#if BUILDFLAG(ANDROID_JAVA_UI)
content::WebContents* web_contents =
content::WebContents::FromRenderFrameHost(render_frame_host);

Powered by Google App Engine
This is Rietveld 408576698