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

Unified Diff: components/password_manager/core/browser/password_form_manager.h

Issue 993513006: Introduce ManagePasswordsState class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 5 years, 9 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/core/browser/password_form_manager.h
diff --git a/components/password_manager/core/browser/password_form_manager.h b/components/password_manager/core/browser/password_form_manager.h
index b3629a2da78cf921355b868d3d9c1daaff4cdb40..b78129cfa44c884dcec266a469fde0e03fa77d60 100644
--- a/components/password_manager/core/browser/password_form_manager.h
+++ b/components/password_manager/core/browser/password_form_manager.h
@@ -178,6 +178,13 @@ class PasswordFormManager : public PasswordStoreConsumer {
// Returns the realm URL for the form managed my this manager.
const std::string& realm() const { return pending_credentials_.signon_realm; }
+#if defined(UNIT_TEST)
+ void SimulateFetchMatchingLoginsFromPasswordStore() {
+ // Just need to update the internal states.
+ state_ = MATCHING_PHASE;
+ }
+#endif
+
protected:
const autofill::PasswordForm& observed_form() const { return observed_form_; }

Powered by Google App Engine
This is Rietveld 408576698