FieldValueAndPropertiesMaskMap (which is equal to std::map<
uint32_t,
std::pair<std::unique_ptr<base::string16>, FieldPropertiesMask>> ) is used for keeping different information related to input elements in PasswordAutofillAgent. It's started as simple map: Input->Typed value and became much more complicated with non-trivial logic. It would be good to move all that logic to a separate class with interface like that
class FieldDataManager {
void SetUserTypedValue(id, value);
string GetUserTypedValue(id, value);
Get/SetFieldProperties
etc
};
Comment 1 by dvadym@chromium.org
, Jun 4 2018