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

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

Issue 686653003: Don't use FormFieldData only as a key in a map (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: components/password_manager/content/browser/content_password_manager_driver.h
diff --git a/components/password_manager/content/browser/content_password_manager_driver.h b/components/password_manager/content/browser/content_password_manager_driver.h
index c6b64f6fb5bba37d27c80c2c46b9b17bf33ff4a1..3d454a6d5d6a38d488304bafe92dc20d0530957b 100644
--- a/components/password_manager/content/browser/content_password_manager_driver.h
+++ b/components/password_manager/content/browser/content_password_manager_driver.h
@@ -63,6 +63,12 @@ class ContentPasswordManagerDriver : public PasswordManagerDriver,
PasswordGenerationManager password_generation_manager_;
PasswordAutofillManager password_autofill_manager_;
+ // Every instance of PasswordFormFillData created by |*this| and sent to
+ // PasswordAutofillManager and PasswordAutofillAgent is given an ID, so that
+ // the latter two classes can reference to the same instance without sending
+ // it to each other over IPC. The counter below is used to generate new IDs.
+ int next_free_key_;
+
DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver);
};

Powered by Google App Engine
This is Rietveld 408576698