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

Unified Diff: chrome/browser/password_manager/chrome_password_manager_client.h

Issue 1762603002: 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
Index: chrome/browser/password_manager/chrome_password_manager_client.h
diff --git a/chrome/browser/password_manager/chrome_password_manager_client.h b/chrome/browser/password_manager/chrome_password_manager_client.h
index bc8c97327559908634c0bd873c0c6e63f9d89b4b..055f60498325c4b6985d2a59b3f788c7d54d8480 100644
--- a/chrome/browser/password_manager/chrome_password_manager_client.h
+++ b/chrome/browser/password_manager/chrome_password_manager_client.h
@@ -12,7 +12,7 @@
#include "base/macros.h"
#include "base/memory/scoped_vector.h"
#include "components/password_manager/content/browser/content_password_manager_driver_factory.h"
-#include "components/password_manager/content/browser/credential_manager_dispatcher.h"
+#include "components/password_manager/content/browser/credential_manager_impl.h"
#include "components/password_manager/core/browser/password_manager.h"
#include "components/password_manager/core/browser/password_manager_client.h"
#include "components/password_manager/sync/browser/sync_credentials_filter.h"
@@ -105,6 +105,10 @@ class ChromePasswordManagerClient
// the sad old Infobar UI.
static bool IsTheHotNewBubbleUIEnabled();
+ static void BindCredentialManager(
+ content::RenderFrameHost* render_frame_host,
+ password_manager::mojom::CredentialManagerRequest request);
+
protected:
// Callable for tests.
ChromePasswordManagerClient(content::WebContents* web_contents,
@@ -166,8 +170,10 @@ class ChromePasswordManagerClient
password_manager::ContentPasswordManagerDriverFactory* driver_factory_;
- password_manager::CredentialManagerDispatcher
- credential_manager_dispatcher_;
+ // As a mojo service, will be registered into service registry
+ // of the main frame host by ChromeContentBrowserClient
+ // once main frame host was created.
+ password_manager::CredentialManagerImpl credential_manager_impl_;
// Observer for password generation popup.
autofill::PasswordGenerationPopupObserver* observer_;
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/password_manager/chrome_password_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698