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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1877123003: Reland: Switch components/password_manager code from IPC messages to Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase only Created 4 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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/password_manager/chrome_password_manager_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8f5d195d2f2b451ca245fdc6a090a693a78ae42e..d0a88048604549ba2a3c5745cf570c0357be8a76 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -53,6 +53,7 @@
#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.h"
#include "chrome/browser/notifications/platform_notification_service_impl.h"
+#include "chrome/browser/password_manager/chrome_password_manager_client.h"
#include "chrome/browser/permissions/permission_context_base.h"
#include "chrome/browser/platform_util.h"
#include "chrome/browser/prerender/prerender_final_status.h"
@@ -2768,6 +2769,13 @@ void ChromeContentBrowserClient::RegisterRenderFrameMojoServices(
base::Bind(&CreateWebUsbChooserService, render_frame_host));
}
+ // Register mojo CredentialManager service only for main frame.
+ if (!render_frame_host->GetParent()) {
+ registry->AddService(
+ base::Bind(&ChromePasswordManagerClient::BindCredentialManager,
+ render_frame_host));
+ }
+
#if BUILDFLAG(ANDROID_JAVA_UI)
ChromeServiceRegistrarAndroid::RegisterRenderFrameMojoServices(registry);
#endif
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/password_manager/chrome_password_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698