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

Unified Diff: components/password_manager/content/browser/content_credential_manager_dispatcher.h

Issue 707173004: Refactor Autofill for out of process iframes (OOPIF). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self review Created 6 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: components/password_manager/content/browser/content_credential_manager_dispatcher.h
diff --git a/components/password_manager/content/browser/content_credential_manager_dispatcher.h b/components/password_manager/content/browser/content_credential_manager_dispatcher.h
index 195cbe0d7f6c84713a202f08f599a37e467df44b..1bee1a9c01e7025edb320909394f7e3c79b0b446 100644
--- a/components/password_manager/content/browser/content_credential_manager_dispatcher.h
+++ b/components/password_manager/content/browser/content_credential_manager_dispatcher.h
@@ -24,6 +24,7 @@ namespace password_manager {
class CredentialManagerPasswordFormManager;
class PasswordManagerClient;
+class PasswordManagerDriver;
class PasswordStore;
struct CredentialInfo;
@@ -56,10 +57,16 @@ class ContentCredentialManagerDispatcher : public CredentialManagerDispatcher,
void OnGetPasswordStoreResults(
const std::vector<autofill::PasswordForm*>& results) override;
+ // For testing only.
+ void set_password_manager_driver(PasswordManagerDriver* driver) {
+ driver_ = driver;
+ }
+
private:
PasswordStore* GetPasswordStore();
PasswordManagerClient* client_;
+ PasswordManagerDriver* driver_;
scoped_ptr<CredentialManagerPasswordFormManager> form_manager_;
// When 'OnRequestCredential' is called, it in turn calls out to the

Powered by Google App Engine
This is Rietveld 408576698